/external/chromium_org/third_party/sqlite/src/src/ |
H A D | legacy.c | 50 int nCol; local 66 nCol = sqlite3_column_count(pStmt); 77 azCols = sqlite3DbMallocZero(db, 2*nCol*sizeof(const char*) + 1); 81 for(i=0; i<nCol; i++){ 90 azVals = &azCols[nCol]; 91 for(i=0; i<nCol; i++){ 99 if( xCallback(pArg, nCol, azVals, azCols) ){
|
H A D | table.c | 44 static int sqlite3_get_table_cb(void *pArg, int nCol, char **argv, char **colv){ argument 54 need = nCol*2; 56 need = nCol; 70 p->nColumn = nCol; 71 for(i=0; i<nCol; i++){ 76 }else if( p->nColumn!=nCol ){ 88 for(i=0; i<nCol; i++){
|
H A D | delete.c | 513 pParse->nMem += (1 + pTab->nCol); 518 for(iCol=0; iCol<pTab->nCol; iCol++){ 623 int nCol; local 625 nCol = pIdx->nColumn; 626 regBase = sqlite3GetTempRange(pParse, nCol+1); 627 sqlite3VdbeAddOp2(v, OP_Rowid, iCur, regBase+nCol); 628 for(j=0; j<nCol; j++){ 631 sqlite3VdbeAddOp2(v, OP_SCopy, regBase+nCol, regBase+j); 638 sqlite3VdbeAddOp3(v, OP_MakeRecord, regBase, nCol+1, regOut); 641 sqlite3ReleaseTempRange(pParse, regBase, nCol [all...] |
H A D | analyze.c | 166 int nCol; local 170 nCol = pIdx->nColumn; 172 if( iMem+1+(nCol*2)>pParse->nMem ){ 173 pParse->nMem = iMem+1+(nCol*2); 216 ** iMem+1 .. iMem+nCol: 218 ** left-most N columns only, where N is between 1 and nCol, 221 ** iMem+nCol+1 .. Mem+2*nCol: 224 ** Cells iMem through iMem+nCol are initialized to 0. The others are 227 for(i=0; i<=nCol; [all...] |
H A D | fkey.c | 190 int nCol = pFKey->nCol; /* Number of columns in parent key */ local 206 if( nCol==1 ){ 219 assert( nCol>1 ); 220 aiCol = (int *)sqlite3DbMallocRaw(pParse->db, nCol*sizeof(int)); 226 if( pIdx->nColumn==nCol && pIdx->onError!=OE_None ){ 238 for(i=0; i<nCol; i++) aiCol[i] = pFKey->aCol[i].iFrom; 248 for(i=0; i<nCol; i++){ 263 for(j=0; j<nCol; j++){ 269 if( j==nCol ) brea 375 int nCol = pFKey->nCol; local [all...] |
H A D | insert.c | 33 sqlite3VdbeChangeP4(v, -1, SQLITE_INT_TO_PTR(pTab->nCol), P4_INT32); 112 zColAff = (char *)sqlite3DbMallocRaw(0, pTab->nCol+1); 118 for(i=0; i<pTab->nCol; i++){ 121 zColAff[pTab->nCol] = '\0'; 685 for(i=0; i<pTab->nCol; i++){ 689 if( pColumn==0 && nColumn && nColumn!=(pTab->nCol-nHidden) ){ 692 pTabList, 0, pTab->nCol-nHidden, nColumn); 716 for(j=0; j<pTab->nCol; j++){ 725 if( j>=pTab->nCol ){ 799 pParse->nMem += pTab->nCol 1151 int nCol; /* Number of columns */ local [all...] |
H A D | test8.c | 82 int nCol; /* Number of columns in the real table */ member in struct:echo_vtab 83 int *aIndex; /* Array of size nCol. True if column has an index */ 84 char **aCol; /* Array of size nCol. Column names */ 152 ** nCol column names. The caller is responsible for calling sqlite3_free 165 int nCol = 0; local 183 nCol = sqlite3_column_count(pStmt); 188 nBytes = sizeof(char *) * nCol; 189 for(ii=0; ii<nCol; ii++){ 206 zSpace = (char *)(&aCol[nCol]); 207 for(ii=0; ii<nCol; i 235 getIndexArray( sqlite3 *db, const char *zTab, int nCol, int **paIndex ) argument [all...] |
H A D | build.c | 491 for(i=0; i<pTable->nCol; i++, pCol++){ 957 if( p->nCol+1>db->aLimit[SQLITE_LIMIT_COLUMN] ){ 964 for(i=0; i<p->nCol; i++){ 971 if( (p->nCol & 0x7)==0 ){ 973 aNew = sqlite3DbRealloc(db,p->aCol,(p->nCol+8)*sizeof(p->aCol[0])); 980 pCol = &p->aCol[p->nCol]; 989 p->nCol++; 1001 if( p==0 || NEVER(p->nCol<1) ) return; 1002 p->aCol[p->nCol-1].notNull = (u8)onError; 1080 if( p==0 || NEVER(p->nCol< 2184 int nCol; local 2422 int nCol; local 3737 int nCol = pIdx->nColumn; local [all...] |
H A D | shell.c | 1113 int nCol = sqlite3_column_count(pStmt); local 1114 void *pData = sqlite3_malloc(3*nCol*sizeof(const char*) + 1); 1119 char **azVals = &azCols[nCol]; /* Results */ 1120 int *aiTypes = (int *)&azVals[nCol]; /* Result types */ 1124 for(i=0; i<nCol; i++){ 1129 for(i=0; i<nCol; i++){ 1141 if( xCallback(pArg, nCol, azVals, azCols, aiTypes) ){ 1659 int nCol; /* Number of columns in the table */ local 1689 nCol = sqlite3_column_count(pStmt); 1692 if( nCol [all...] |
H A D | select.c | 186 for(i=0; i<pTab->nCol; i++){ 346 for(j=0; j<pRightTab->nCol; j++){ 1056 assert( iCol==-1 || (iCol>=0 && iCol<pTab->nCol) ); 1183 assert( iCol==-1 || (iCol>=0 && iCol<pTab->nCol) ); 1230 int nCol; /* Number of columns in the result set */ local 1235 *pnCol = nCol = pEList->nExpr; 1236 aCol = *paCol = sqlite3DbMallocZero(db, sizeof(aCol[0])*nCol); 1238 for(i=0, pCol=aCol; i<nCol; i++, pCol++){ 1313 int nCol, /* Number of columns */ 1327 assert( nCol 1311 selectAddColumnTypeAndCollation( Parse *pParse, int nCol, Column *aCol, Select *pSelect ) argument 1834 int nCol; /* Number of columns in result set */ local 4065 int nCol; local [all...] |
H A D | tclsqlite.c | 1253 int nCol; /* Number of columns returned by pStmt */ member in struct:DbEvalContext 1265 for(i=0; i<p->nCol; i++){ 1271 p->nCol = 0; 1316 int nCol; /* Number of columns returned by pStmt */ local 1319 p->nCol = nCol = sqlite3_column_count(pStmt); 1320 if( nCol>0 && (papColName || p->pArray) ){ 1321 apColName = (Tcl_Obj**)Tcl_Alloc( sizeof(Tcl_Obj*)*nCol ); 1322 for(i=0; i<nCol; i++){ 1337 for(i=0; i<nCol; 1513 int nCol; local 1957 int nCol; /* Number of columns in the table */ local 2217 int nCol; local [all...] |
H A D | test1.c | 584 int nRow, nCol; local 604 rc = sqlite3_get_table(db, zSql, &aResult, &nRow, &nCol, &zErr); 605 resCount = (nRow+1)*nCol; 614 sprintf(zBuf, "%d", nCol);
|
H A D | sqliteInt.h | 1246 ** Table.nCol is the number of columns in this table. Table.aCol is a 1271 int nCol; /* Number of columns in this table */ member in struct:Table 1348 int nCol; /* Number of columns in this key */ member in struct:FKey 1356 } aCol[1]; /* One entry for each of nCol column s */ 1455 ** In the Table structure describing Ex1, nCol==3 because there are
|
/external/chromium_org/third_party/sqlite/src/ext/fts3/ |
H A D | fts3_expr.c | 88 int nCol; /* Number of entries in azCol[] */ member in struct:ParseContext 453 for(ii=0; ii<pParse->nCol; ii++){ 693 ** array, which is assumed to contain nCol entries, should contain the names 706 int nCol, /* Number of entries in azCol[] */ 716 sParse.nCol = nCol; 862 int nCol; local 895 nCol = argc-2; 896 azCol = (char **)sqlite3_malloc(nCol*sizeof(char *)); 901 for(ii=0; ii<nCol; i 703 sqlite3Fts3ExprParse( sqlite3_tokenizer *pTokenizer, char **azCol, int nCol, int iDefaultCol, const char *z, int n, Fts3Expr **ppExpr ) argument [all...] |
H A D | fts3_snippet.c | 26 #define FTS3_MATCHINFO_AVGLENGTH 'a' /* nCol values */ 27 #define FTS3_MATCHINFO_LENGTH 'l' /* nCol values */ 28 #define FTS3_MATCHINFO_LCS 's' /* nCol values */ 29 #define FTS3_MATCHINFO_HITS 'x' /* 3*nCol*nPhrase values */ 88 int nCol; /* Number of columns in table */ member in struct:MatchInfo 807 ** for(iCol=0; iCol<nCol; iCol++){ 808 ** aMatchinfo[3*iPhrase*nCol + 3*iCol + 1] = X; 809 ** aMatchinfo[3*iPhrase*nCol + 3*iCol + 2] = Y; 832 u32 *aOut = &p->aMatchinfo[3*iPhrase*p->nCol]; 851 for(iCol=0; iCol<p->nCol; iCo [all...] |
H A D | fts3.c | 836 int nCol = 0; /* Number of columns in the FTS table */ local 914 aCol[nCol++] = z; 919 if( nCol==0 ){ 923 nCol = 1; 935 nCol * sizeof(char *) + /* azColumn */ 946 p->nColumn = nCol; 957 zCsr = (char *)&p->azColumn[nCol]; 966 for(iCol=0; iCol<nCol; iCol++){
|
/external/sqlite/dist/orig/ |
H A D | shell.c | 1169 int nCol = sqlite3_column_count(pStmt); local 1170 void *pData = sqlite3_malloc(3*nCol*sizeof(const char*) + 1); 1175 char **azVals = &azCols[nCol]; /* Results */ 1176 int *aiTypes = (int *)&azVals[nCol]; /* Result types */ 1180 for(i=0; i<nCol; i++){ 1185 for(i=0; i<nCol; i++){ 1197 if( xCallback(pArg, nCol, azVals, azCols, aiTypes) ){ 1730 int nCol; /* Number of columns in the table */ local 1760 nCol = sqlite3_column_count(pStmt); 1763 if( nCol [all...] |
H A D | sqlite3.c | 10152 ** Table.nCol is the number of columns in this table. Table.aCol is a 10177 int nCol; /* Number of columns in this table */ member in struct:Table 10252 int nCol; /* Number of columns in this key */ member in struct:FKey 10260 } aCol[1]; /* One entry for each of nCol column s */ 10356 ** In the Table structure describing Ex1, nCol==3 because there are 79757 int nCol; local 83405 int nCol; local 83684 int nCol; local 84987 int nCol = pIdx->nColumn; local 86096 int nCol; local 87931 int nCol = pFKey->nCol; /* Number of columns in parent key */ local 88116 int nCol = pFKey->nCol; local 90115 int nCol; /* Number of columns */ local 90856 int nCol; local 95757 int nCol; /* Number of columns in the result set */ local 95841 selectAddColumnTypeAndCollation( Parse *pParse, int nCol, Column *aCol, Select *pSelect ) argument 96368 int nCol; /* Number of columns in result set */ local 98704 int nCol; local 99159 sqlite3_get_table_cb(void *pArg, int nCol, char **argv, char **colv) argument 117626 int nCol; /* Number of table columns */ local 117690 int nCol = 0; /* Number of columns in the FTS table */ local 122384 int nCol; /* Number of entries in azCol[] */ member in struct:ParseContext 123058 sqlite3Fts3ExprParse( sqlite3_tokenizer *pTokenizer, int iLangid, char **azCol, int bFts4, int nCol, int iDefaultCol, const char *z, int n, Fts3Expr **ppExpr ) argument 123224 int nCol; local 128698 int nCol; /* Number of columns in table */ member in struct:MatchInfo [all...] |
/external/sqlite/dist/ |
H A D | shell.c | 1174 int nCol = sqlite3_column_count(pStmt); local 1175 void *pData = sqlite3_malloc(3*nCol*sizeof(const char*) + 1); 1180 char **azVals = &azCols[nCol]; /* Results */ 1181 int *aiTypes = (int *)&azVals[nCol]; /* Result types */ 1185 for(i=0; i<nCol; i++){ 1190 for(i=0; i<nCol; i++){ 1202 if( xCallback(pArg, nCol, azVals, azCols, aiTypes) ){ 1749 int nCol; /* Number of columns in the table */ local 1779 nCol = sqlite3_column_count(pStmt); 1782 if( nCol [all...] |
H A D | sqlite3.c | 10152 ** Table.nCol is the number of columns in this table. Table.aCol is a 10177 int nCol; /* Number of columns in this table */ member in struct:Table 10252 int nCol; /* Number of columns in this key */ member in struct:FKey 10260 } aCol[1]; /* One entry for each of nCol column s */ 10356 ** In the Table structure describing Ex1, nCol==3 because there are 79793 int nCol; local 83441 int nCol; local 83720 int nCol; local 85023 int nCol = pIdx->nColumn; local 86132 int nCol; local 87967 int nCol = pFKey->nCol; /* Number of columns in parent key */ local 88152 int nCol = pFKey->nCol; local 90151 int nCol; /* Number of columns */ local 90892 int nCol; local 95793 int nCol; /* Number of columns in the result set */ local 95877 selectAddColumnTypeAndCollation( Parse *pParse, int nCol, Column *aCol, Select *pSelect ) argument 96404 int nCol; /* Number of columns in result set */ local 98740 int nCol; local 99195 sqlite3_get_table_cb(void *pArg, int nCol, char **argv, char **colv) argument 117662 int nCol; /* Number of table columns */ local 117726 int nCol = 0; /* Number of columns in the FTS table */ local 122430 int nCol; /* Number of entries in azCol[] */ member in struct:ParseContext 123104 sqlite3Fts3ExprParse( sqlite3_tokenizer *pTokenizer, int iLangid, char **azCol, int bFts4, int nCol, int iDefaultCol, const char *z, int n, Fts3Expr **ppExpr ) argument 123270 int nCol; local 128744 int nCol; /* Number of columns in table */ member in struct:MatchInfo [all...] |
/external/chromium_org/third_party/sqlite/amalgamation/ |
H A D | sqlite3.c | 9606 ** Table.nCol is the number of columns in this table. Table.aCol is a 9631 int nCol; /* Number of columns in this table */ member in struct:Table 9708 int nCol; /* Number of columns in this key */ member in struct:FKey 9716 } aCol[1]; /* One entry for each of nCol column s */ 9815 ** In the Table structure describing Ex1, nCol==3 because there are 75667 int nCol; local 79200 int nCol; local 79438 int nCol; local 80753 int nCol = pIdx->nColumn; local 81887 int nCol; local 83689 int nCol = pFKey->nCol; /* Number of columns in parent key */ local 83874 int nCol = pFKey->nCol; local 85841 int nCol; /* Number of columns */ local 86572 int nCol; local 91359 int nCol; /* Number of columns in the result set */ local 91440 selectAddColumnTypeAndCollation( Parse *pParse, int nCol, Column *aCol, Select *pSelect ) argument 91963 int nCol; /* Number of columns in result set */ local 94194 int nCol; local 94638 sqlite3_get_table_cb(void *pArg, int nCol, char **argv, char **colv) argument 114076 int nCol = 0; /* Number of columns in the FTS table */ local 117503 int nCol; /* Number of entries in azCol[] */ member in struct:ParseContext 118118 sqlite3Fts3ExprParse( sqlite3_tokenizer *pTokenizer, char **azCol, int nCol, int iDefaultCol, const char *z, int n, Fts3Expr **ppExpr ) argument 118276 int nCol; local 122911 int nCol; /* Number of columns in table */ member in struct:MatchInfo [all...] |