Searched refs:nCol (Results 1 - 25 of 29) 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.c491 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 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;
H A Dwhere.c1862 mxBitCol = (pTable->nCol >= BMS-1) ? BMS-1 : pTable->nCol;
1863 testcase( pTable->nCol==BMS-1 );
1864 testcase( pTable->nCol==BMS-2 );
1869 nColumn += pTable->nCol - BMS + 1;
1915 for(i=BMS-1; i<pTable->nCol; i++){
4751 testcase( pTab->nCol==BMS-1 );
4752 testcase( pTab->nCol==BMS );
4753 if( !pWInfo->okOnePass && pTab->nCol<BMS ){
4759 assert( n<=pTab->nCol );
[all...]
H A Dpragma.c880 for(i=0, pCol=pTab->aCol; i<pTab->nCol; i++, pCol++){
918 assert( pTab->nCol>cnum );
1010 for(j=0; j<pFK->nCol; j++){
/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 Dsqlite3.c10152 ** 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 Dsqlite3.c10152 ** 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 Dsqlite3.c9606 ** 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...]

Completed in 565 milliseconds

12