Searched refs:nCol (Results 1 - 25 of 31) sorted by relevance

12

/external/chromium_org/third_party/sqlite/src/src/
H A Dlegacy.c50 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 Dtable.c44 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 Dfkey.c190 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 Dupdate.c67 assert( i<pTab->nCol );
168 aXRef = sqlite3DbMallocRaw(db, sizeof(int) * pTab->nCol );
170 for(i=0; i<pTab->nCol; i++) aXRef[i] = -1;
198 for(j=0; j<pTab->nCol; j++){
208 if( j>=pTab->nCol ){
281 pParse->nMem += pTab->nCol;
287 pParse->nMem += pTab->nCol;
396 for(i=0; i<pTab->nCol; i++){
424 for(i=0; i<pTab->nCol; i++){
449 sqlite3VdbeAddOp2(v, OP_Affinity, regNew, pTab->nCol);
[all...]
H A Ddelete.c513 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 Dinsert.c33 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 Danalyze.c166 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 Dbuild.c488 for(i=0; i<pTable->nCol; i++, pCol++){
954 if( p->nCol+1>db->aLimit[SQLITE_LIMIT_COLUMN] ){
961 for(i=0; i<p->nCol; i++){
968 if( (p->nCol & 0x7)==0 ){
970 aNew = sqlite3DbRealloc(db,p->aCol,(p->nCol+8)*sizeof(p->aCol[0]));
977 pCol = &p->aCol[p->nCol];
986 p->nCol++;
998 if( p==0 || NEVER(p->nCol<1) ) return;
999 p->aCol[p->nCol-1].notNull = (u8)onError;
1077 if( p==0 || NEVER(p->nCol<
2181 int nCol; local
2419 int nCol; local
3734 int nCol = pIdx->nColumn; local
[all...]
H A Dalter.c643 pCol = &pNew->aCol[pNew->nCol-1];
793 pNew->nCol = pTab->nCol;
794 assert( pNew->nCol>0 );
795 nAlloc = (((pNew->nCol-1)/8)*8)+8;
796 assert( nAlloc>=pNew->nCol && nAlloc%8==0 && nAlloc-pNew->nCol<8 );
803 memcpy(pNew->aCol, pTab->aCol, sizeof(Column)*pNew->nCol);
804 for(i=0; i<pNew->nCol; i++){
H A Dauth.c171 assert( iCol<pTab->nCol );
174 assert( pTab->iPKey<pTab->nCol );
H A Dvdbeblob.c199 for(iCol=0; iCol<pTab->nCol; iCol++) {
204 if( iCol==pTab->nCol ){
228 for(j=0; j<pFKey->nCol; j++){
297 sqlite3VdbeChangeP4(v, 3+flags, SQLITE_INT_TO_PTR(pTab->nCol+1),P4_INT32);
298 sqlite3VdbeChangeP2(v, 7, pTab->nCol);
H A Dtest8.c82 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 Dselect.c186 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 Dtclsqlite.c1253 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 Dresolve.c169 assert( pTab->nCol>0 );
190 for(j=0, pCol=pTab->aCol; j<pTab->nCol; j++, pCol++){
246 for(iCol=0; iCol<pTab->nCol; iCol++){
255 if( iCol>=pTab->nCol && sqlite3IsRowid(zCol) ){
258 if( iCol<pTab->nCol ){
H A Dvtab.c492 for(iCol=0; iCol<pTab->nCol; iCol++){
669 pTab->nCol = pParse->pNewTable->nCol;
670 pParse->pNewTable->nCol = 0;
/external/chromium_org/third_party/sqlite/src/ext/fts3/
H A Dfts3_expr.c88 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 Dfts3_snippet.c26 #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 Dfts3.c836 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/chromium_org/third_party/sqlite/src/ext/rtree/
H A Dviewrtree.tcl42 set nCol [expr [llength [db eval "pragma table_info($name)"]]/6]
43 if {$nCol != 5} {
/external/sqlite/dist/orig/
H A Dshell.c1366 int nCol = sqlite3_column_count(pStmt); local
1367 void *pData = sqlite3_malloc(3*nCol*sizeof(const char*) + 1);
1372 char **azVals = &azCols[nCol]; /* Results */
1373 int *aiTypes = (int *)&azVals[nCol]; /* Result types */
1377 for(i=0; i<nCol; i++){
1382 for(i=0; i<nCol; i++){
1398 if( xCallback(pArg, nCol, azVals, azCols, aiTypes) ){
2561 int nCol; /* Number of columns in the table */ local
2647 nCol = sqlite3_column_count(pStmt);
2650 if( nCol
[all...]
H A Dsqlite3.c10916 ** Table.nCol is the number of columns in this table. Table.aCol is a
10951 i16 nCol; /* Number of columns in this table */ member in struct:Table
11033 int nCol; /* Number of columns in this key */ member in struct:FKey
11041 } aCol[1]; /* One entry for each of nCol columns */
11142 ** In the Table structure describing Ex1, nCol==3 because there are
61754 int nCol = pIdx->nColumn; /* Number of index columns including rowid */ local
62165 int nCol = pRec->pKeyInfo->nField+pRec->pKeyInfo->nXField; local
83695 int nCol; /* Number of columns in index + pk/rowid */ member in struct:Stat4Accum
83809 int nCol; /* Number of columns in index being sampled */ local
83912 int nCol = pAccum->nCol; local
84426 int nCol; /* Number of columns in pIdx. "N" */ local
84973 int nCol = 1; local
85120 int nCol = 1; /* Number of columns in index */ local
87703 hasColumn(const i16 *aiCol, int nCol, int x) argument
88616 int nCol; local
88830 sqlite3AllocateIndexObject( sqlite3 *db, i16 nCol, int nExtra, char **ppExtra ) argument
90256 int nCol = pIdx->nColumn; local
91624 int nCol; local
93612 int nCol = pFKey->nCol; /* Number of columns in parent key */ local
93802 int nCol = pFKey->nCol; local
95929 int nCol; /* Number of columns */ local
96854 int nCol; local
102983 int nCol; /* Number of columns in the result set */ local
103345 int nCol = p->pEList->nExpr; /* Number of columns in the recursive table */ local
103817 int nCol; /* Number of columns in result set */ local
106423 int nCol; local
106903 sqlite3_get_table_cb(void *pArg, int nCol, char **argv, char **colv) argument
127861 int nCol; /* Number of table columns */ local
127925 int nCol = 0; /* Number of columns in the FTS table */ local
133284 int nCol; /* Number of entries in azCol[] */ member in struct:ParseContext
134120 fts3ExprParseUnbalanced( sqlite3_tokenizer *pTokenizer, int iLangid, char **azCol, int bFts4, int nCol, int iDefaultCol, const char *z, int n, Fts3Expr **ppExpr ) argument
134183 sqlite3Fts3ExprParse( sqlite3_tokenizer *pTokenizer, int iLangid, char **azCol, int bFts4, int nCol, int iDefaultCol, const char *z, int n, Fts3Expr **ppExpr, char **pzErr ) argument
134377 int nCol; local
142449 int nCol; /* Number of columns in table */ member in struct:MatchInfo
[all...]
/external/sqlite/dist/
H A Dshell.c1371 int nCol = sqlite3_column_count(pStmt); local
1372 void *pData = sqlite3_malloc(3*nCol*sizeof(const char*) + 1);
1377 char **azVals = &azCols[nCol]; /* Results */
1378 int *aiTypes = (int *)&azVals[nCol]; /* Result types */
1382 for(i=0; i<nCol; i++){
1387 for(i=0; i<nCol; i++){
1403 if( xCallback(pArg, nCol, azVals, azCols, aiTypes) ){
2581 int nCol; /* Number of columns in the table */ local
2667 nCol = sqlite3_column_count(pStmt);
2670 if( nCol
[all...]
H A Dsqlite3.c10916 ** Table.nCol is the number of columns in this table. Table.aCol is a
10951 i16 nCol; /* Number of columns in this table */ member in struct:Table
11033 int nCol; /* Number of columns in this key */ member in struct:FKey
11041 } aCol[1]; /* One entry for each of nCol columns */
11142 ** In the Table structure describing Ex1, nCol==3 because there are
61774 int nCol = pIdx->nColumn; /* Number of index columns including rowid */ local
62185 int nCol = pRec->pKeyInfo->nField+pRec->pKeyInfo->nXField; local
83715 int nCol; /* Number of columns in index + pk/rowid */ member in struct:Stat4Accum
83829 int nCol; /* Number of columns in index being sampled */ local
83932 int nCol = pAccum->nCol; local
84446 int nCol; /* Number of columns in pIdx. "N" */ local
84993 int nCol = 1; local
85140 int nCol = 1; /* Number of columns in index */ local
87723 hasColumn(const i16 *aiCol, int nCol, int x) argument
88636 int nCol; local
88850 sqlite3AllocateIndexObject( sqlite3 *db, i16 nCol, int nExtra, char **ppExtra ) argument
90276 int nCol = pIdx->nColumn; local
91644 int nCol; local
93632 int nCol = pFKey->nCol; /* Number of columns in parent key */ local
93822 int nCol = pFKey->nCol; local
95949 int nCol; /* Number of columns */ local
96874 int nCol; local
103003 int nCol; /* Number of columns in the result set */ local
103365 int nCol = p->pEList->nExpr; /* Number of columns in the recursive table */ local
103837 int nCol; /* Number of columns in result set */ local
106443 int nCol; local
106923 sqlite3_get_table_cb(void *pArg, int nCol, char **argv, char **colv) argument
127881 int nCol; /* Number of table columns */ local
127945 int nCol = 0; /* Number of columns in the FTS table */ local
133316 int nCol; /* Number of entries in azCol[] */ member in struct:ParseContext
134152 fts3ExprParseUnbalanced( sqlite3_tokenizer *pTokenizer, int iLangid, char **azCol, int bFts4, int nCol, int iDefaultCol, const char *z, int n, Fts3Expr **ppExpr ) argument
134215 sqlite3Fts3ExprParse( sqlite3_tokenizer *pTokenizer, int iLangid, char **azCol, int bFts4, int nCol, int iDefaultCol, const char *z, int n, Fts3Expr **ppExpr, char **pzErr ) argument
134409 int nCol; local
142481 int nCol; /* Number of columns in table */ member in struct:MatchInfo
[all...]
/external/chromium_org/third_party/sqlite/amalgamation/
H A Dsqlite3.c9591 ** Table.nCol is the number of columns in this table. Table.aCol is a
9616 int nCol; /* Number of columns in this table */ member in struct:Table
9693 int nCol; /* Number of columns in this key */ member in struct:FKey
9701 } aCol[1]; /* One entry for each of nCol column s */
9800 ** In the Table structure describing Ex1, nCol==3 because there are
75488 int nCol; local
79020 int nCol; local
79258 int nCol; local
80573 int nCol = pIdx->nColumn; local
81680 int nCol; local
83482 int nCol = pFKey->nCol; /* Number of columns in parent key */ local
83667 int nCol = pFKey->nCol; local
85634 int nCol; /* Number of columns */ local
86365 int nCol; local
91152 int nCol; /* Number of columns in the result set */ local
91233 selectAddColumnTypeAndCollation( Parse *pParse, int nCol, Column *aCol, Select *pSelect ) argument
91756 int nCol; /* Number of columns in result set */ local
93987 int nCol; local
94431 sqlite3_get_table_cb(void *pArg, int nCol, char **argv, char **colv) argument
113897 int nCol = 0; /* Number of columns in the FTS table */ local
117324 int nCol; /* Number of entries in azCol[] */ member in struct:ParseContext
117939 sqlite3Fts3ExprParse( sqlite3_tokenizer *pTokenizer, char **azCol, int nCol, int iDefaultCol, const char *z, int n, Fts3Expr **ppExpr ) argument
118097 int nCol; local
122732 int nCol; /* Number of columns in table */ member in struct:MatchInfo
[all...]

Completed in 593 milliseconds

12