Searched refs:pStmt (Results 1 - 25 of 47) sorted by relevance

12

/external/chromium_org/third_party/sqlite/src/src/
H A Dlegacy.c39 sqlite3_stmt *pStmt = 0; /* The current SQL statement */ local
53 pStmt = 0;
54 rc = sqlite3_prepare(db, zSql, -1, &pStmt, &zLeftover);
55 assert( rc==SQLITE_OK || pStmt==0 );
59 if( !pStmt ){
66 nCol = sqlite3_column_count(pStmt);
70 rc = sqlite3_step(pStmt);
82 azCols[i] = (char *)sqlite3_column_name(pStmt, i);
92 azVals[i] = (char *)sqlite3_column_text(pStmt, i);
93 if( !azVals[i] && sqlite3_column_type(pStmt,
[all...]
H A Dtest9.c115 sqlite3_stmt *pStmt; local
140 pStmt = (sqlite3_stmt*)1234;
141 rc = sqlite3_prepare(db, 0, 0, &pStmt, 0);
146 assert( pStmt==0 ); /* Verify that pStmt is zeroed even on a MISUSE error */
148 pStmt = (sqlite3_stmt*)1234;
149 rc = sqlite3_prepare_v2(db, 0, 0, &pStmt, 0);
154 assert( pStmt==0 );
157 pStmt = (sqlite3_stmt*)1234;
158 rc = sqlite3_prepare16(db, 0, 0, &pStmt,
[all...]
H A Dvdbeapi.c28 int sqlite3_expired(sqlite3_stmt *pStmt){ argument
29 Vdbe *p = (Vdbe*)pStmt;
65 int sqlite3_finalize(sqlite3_stmt *pStmt){ argument
67 if( pStmt==0 ){
72 Vdbe *v = (Vdbe*)pStmt;
97 int sqlite3_reset(sqlite3_stmt *pStmt){ argument
99 if( pStmt==0 ){
102 Vdbe *v = (Vdbe*)pStmt;
116 int sqlite3_clear_bindings(sqlite3_stmt *pStmt){ argument
119 Vdbe *p = (Vdbe*)pStmt;
467 sqlite3_step(sqlite3_stmt *pStmt) argument
661 sqlite3_column_count(sqlite3_stmt *pStmt) argument
670 sqlite3_data_count(sqlite3_stmt *pStmt) argument
683 columnMem(sqlite3_stmt *pStmt, int i) argument
740 columnMallocFailure(sqlite3_stmt *pStmt) argument
758 sqlite3_column_blob(sqlite3_stmt *pStmt, int i) argument
768 sqlite3_column_bytes(sqlite3_stmt *pStmt, int i) argument
773 sqlite3_column_bytes16(sqlite3_stmt *pStmt, int i) argument
778 sqlite3_column_double(sqlite3_stmt *pStmt, int i) argument
783 sqlite3_column_int(sqlite3_stmt *pStmt, int i) argument
788 sqlite3_column_int64(sqlite3_stmt *pStmt, int i) argument
793 sqlite3_column_text(sqlite3_stmt *pStmt, int i) argument
798 sqlite3_column_value(sqlite3_stmt *pStmt, int i) argument
808 sqlite3_column_text16(sqlite3_stmt *pStmt, int i) argument
814 sqlite3_column_type(sqlite3_stmt *pStmt, int i) argument
843 columnName( sqlite3_stmt *pStmt, int N, const void *(*xFunc)(Mem*), int useType ) argument
877 sqlite3_column_name(sqlite3_stmt *pStmt, int N) argument
882 sqlite3_column_name16(sqlite3_stmt *pStmt, int N) argument
902 sqlite3_column_decltype(sqlite3_stmt *pStmt, int N) argument
907 sqlite3_column_decltype16(sqlite3_stmt *pStmt, int N) argument
920 sqlite3_column_database_name(sqlite3_stmt *pStmt, int N) argument
925 sqlite3_column_database_name16(sqlite3_stmt *pStmt, int N) argument
936 sqlite3_column_table_name(sqlite3_stmt *pStmt, int N) argument
941 sqlite3_column_table_name16(sqlite3_stmt *pStmt, int N) argument
952 sqlite3_column_origin_name(sqlite3_stmt *pStmt, int N) argument
957 sqlite3_column_origin_name16(sqlite3_stmt *pStmt, int N) argument
1024 bindText( sqlite3_stmt *pStmt, int i, const void *zData, int nData, void (*xDel)(void*), u8 encoding ) argument
1058 sqlite3_bind_blob( sqlite3_stmt *pStmt, int i, const void *zData, int nData, void (*xDel)(void*) ) argument
1067 sqlite3_bind_double(sqlite3_stmt *pStmt, int i, double rValue) argument
1080 sqlite3_bind_int64(sqlite3_stmt *pStmt, int i, sqlite_int64 iValue) argument
1090 sqlite3_bind_null(sqlite3_stmt *pStmt, int i) argument
1099 sqlite3_bind_text( sqlite3_stmt *pStmt, int i, const char *zData, int nData, void (*xDel)(void*) ) argument
1109 sqlite3_bind_text16( sqlite3_stmt *pStmt, int i, const void *zData, int nData, void (*xDel)(void*) ) argument
1119 sqlite3_bind_value(sqlite3_stmt *pStmt, int i, const sqlite3_value *pValue) argument
1150 sqlite3_bind_zeroblob(sqlite3_stmt *pStmt, int i, int n) argument
1165 sqlite3_bind_parameter_count(sqlite3_stmt *pStmt) argument
1202 sqlite3_bind_parameter_name(sqlite3_stmt *pStmt, int i) argument
1232 sqlite3_bind_parameter_index(sqlite3_stmt *pStmt, const char *zName) argument
1288 sqlite3_db_handle(sqlite3_stmt *pStmt) argument
1296 sqlite3_stmt_readonly(sqlite3_stmt *pStmt) argument
1306 sqlite3_next_stmt(sqlite3 *pDb, sqlite3_stmt *pStmt) argument
1321 sqlite3_stmt_status(sqlite3_stmt *pStmt, int op, int resetFlag) argument
[all...]
H A Dtest_server.c225 sqlite3_stmt *pStmt; /* A specific statement */ member in struct:SqlMessage
240 #define MSG_Prepare 2 /* sqlite3_prepare(pDb, zIn, nByte, &pStmt, &zOut) */
241 #define MSG_Step 3 /* sqlite3_step(pStmt) */
242 #define MSG_Reset 4 /* sqlite3_reset(pStmt) */
243 #define MSG_Finalize 5 /* sqlite3_finalize(pStmt) */
353 *ppStmt = msg.pStmt;
357 int sqlite3_client_step(sqlite3_stmt *pStmt){ argument
360 msg.pStmt = pStmt;
364 int sqlite3_client_reset(sqlite3_stmt *pStmt){ argument
371 sqlite3_client_finalize(sqlite3_stmt *pStmt) argument
[all...]
H A Dvacuum.c25 static int vacuumFinalize(sqlite3 *db, sqlite3_stmt *pStmt, char **pzErrMsg){ argument
27 rc = sqlite3VdbeFinalize((Vdbe*)pStmt);
38 sqlite3_stmt *pStmt; local
43 if( SQLITE_OK!=sqlite3_prepare(db, zSql, -1, &pStmt, 0) ){
47 VVA_ONLY( rc = ) sqlite3_step(pStmt);
49 return vacuumFinalize(db, pStmt, pzErrMsg);
57 sqlite3_stmt *pStmt; local
60 rc = sqlite3_prepare(db, zSql, -1, &pStmt, 0);
63 while( SQLITE_ROW==sqlite3_step(pStmt) ){
64 rc = execSql(db, pzErrMsg, (char*)sqlite3_column_text(pStmt,
[all...]
H A Dvdbeblob.c31 sqlite3_stmt *pStmt; /* Statement holding cursor open */ member in struct:Incrblob
56 Vdbe *v = (Vdbe *)p->pStmt;
65 rc = sqlite3_step(p->pStmt);
73 sqlite3_finalize(p->pStmt);
74 p->pStmt = 0;
87 }else if( p->pStmt ){
88 rc = sqlite3_finalize(p->pStmt);
89 p->pStmt = 0;
253 pBlob->pStmt = (sqlite3_stmt *)sqlite3VdbeCreate(db);
254 assert( pBlob->pStmt || d
[all...]
H A Dtest1.c2205 sqlite3_stmt *pStmt; local
2215 if( getStmtPointer(interp, Tcl_GetString(objv[1]), &pStmt) ) return TCL_ERROR;
2217 if( pStmt ){
2218 db = StmtToDb(pStmt);
2220 rc = sqlite3_finalize(pStmt);
2240 sqlite3_stmt *pStmt; local
2254 if( getStmtPointer(interp, Tcl_GetString(objv[1]), &pStmt) ) return TCL_ERROR;
2266 iValue = sqlite3_stmt_status(pStmt, op, resetFlag);
2282 sqlite3_stmt *pStmt; local
2293 if( getStmtPointer(interp, Tcl_GetString(objv[2]), &pStmt) ) retur
2314 sqlite3_stmt *pStmt; local
2341 sqlite3_stmt *pStmt; local
2377 sqlite3_stmt *pStmt; local
2462 sqlite3_stmt *pStmt; local
2938 sqlite3_stmt *pStmt; local
2974 sqlite3_stmt *pStmt; local
3012 sqlite3_stmt *pStmt; local
3050 sqlite3_stmt *pStmt; local
3126 sqlite3_stmt *pStmt; local
3162 sqlite3_stmt *pStmt; local
3204 sqlite3_stmt *pStmt; local
3251 sqlite3_stmt *pStmt; local
3294 sqlite3_stmt *pStmt; local
3318 sqlite3_stmt *pStmt; local
3345 sqlite3_stmt *pStmt; local
3370 sqlite3_stmt *pStmt; local
3538 sqlite3_stmt *pStmt = 0; local
3595 sqlite3_stmt *pStmt = 0; local
3646 sqlite3_stmt *pStmt = 0; local
3692 sqlite3_stmt *pStmt = 0; local
3752 sqlite3_stmt *pStmt = 0; local
3888 sqlite3_stmt *pStmt; local
3911 sqlite3_stmt *pStmt; local
3934 sqlite3_stmt *pStmt; local
3959 sqlite3_stmt *pStmt; local
4008 sqlite3_stmt *pStmt; local
4035 sqlite3_stmt *pStmt; local
4067 sqlite3_stmt *pStmt; local
4096 sqlite3_stmt *pStmt; local
4123 sqlite3_stmt *pStmt; local
4176 sqlite3_stmt *pStmt; local
4219 sqlite3_stmt *pStmt; local
5377 printExplainQueryPlan(sqlite3_stmt *pStmt) argument
5412 sqlite3_stmt *pStmt; local
[all...]
H A Dtest7.c64 sqlite3_stmt *pStmt; /* Pending operation */ member in struct:Thread
94 p->pStmt = 0;
106 if( p->pStmt ){
107 sqlite3_client_finalize(p->pStmt);
108 p->pStmt = 0;
477 if( p->pStmt ){
478 sqlite3_client_finalize(p->pStmt);
479 p->pStmt = 0;
481 p->rc = sqlite3_client_prepare(p->db, p->zArg, -1, &p->pStmt, 0);
520 if( p->pStmt
[all...]
H A Dtest_thread.c487 int sqlite3_blocking_step(sqlite3_stmt *pStmt){ argument
489 while( SQLITE_LOCKED==(rc = sqlite3_step(pStmt)) ){
490 rc = wait_for_unlock_notify(sqlite3_db_handle(pStmt));
492 sqlite3_reset(pStmt);
536 sqlite3_stmt *pStmt; local
544 pStmt = (sqlite3_stmt*)sqlite3TestTextToPtr(Tcl_GetString(objv[1]));
545 rc = sqlite3_blocking_step(pStmt);
565 sqlite3_stmt *pStmt = 0; local
580 rc = sqlite3_blocking_prepare_v2(db, zSql, bytes, &pStmt, &zTail);
582 rc = sqlite3_prepare_v2(db, zSql, bytes, &pStmt,
[all...]
H A Dtest4.c41 sqlite3_stmt *pStmt; /* Pending operation */ member in struct:Thread
72 p->pStmt = 0;
84 if( p->pStmt ){
85 sqlite3_finalize(p->pStmt);
86 p->pStmt = 0;
446 if( p->pStmt ){
447 sqlite3_finalize(p->pStmt);
448 p->pStmt = 0;
450 p->rc = sqlite3_prepare(p->db, p->zArg, -1, &p->pStmt, 0);
489 if( p->pStmt
[all...]
H A Dtest_stat.c112 sqlite3_stmt *pStmt; /* Iterates through set of root pages */ member in struct:StatCursor
113 int isEof; /* After pStmt has returned SQLITE_DONE */
212 &pCsr->pStmt, 0
236 sqlite3_reset(pCsr->pStmt);
251 sqlite3_finalize(pCsr->pStmt);
377 rc = sqlite3_step(pCsr->pStmt);
380 u32 iRoot = sqlite3_column_int64(pCsr->pStmt, 1);
384 return sqlite3_reset(pCsr->pStmt);
393 return sqlite3_reset(pCsr->pStmt);
404 pCsr->zName = (char *)sqlite3_column_text(pCsr->pStmt,
[all...]
H A Dtest_superlock.c69 sqlite3_stmt *pStmt; /* Compiled PRAGMA journal_mode statement */ local
71 rc = sqlite3_prepare(pLock->db, "PRAGMA main.journal_mode", -1, &pStmt, 0);
75 if( SQLITE_ROW==sqlite3_step(pStmt) ){
76 const char *zMode = (const char *)sqlite3_column_text(pStmt, 0);
82 return sqlite3_finalize(pStmt);
H A Danalyze.c643 sqlite3_stmt *pStmt = 0; local
650 rc = sqlite3_prepare(db, zSql, -1, &pStmt, 0);
655 while( sqlite3_step(pStmt)==SQLITE_ROW ){
659 zIndex = (char *)sqlite3_column_text(pStmt, 0);
662 int iSample = sqlite3_column_int(pStmt, 1);
664 int eType = sqlite3_column_type(pStmt, 2);
681 pSample->u.r = sqlite3_column_double(pStmt, 2);
685 sqlite3_column_blob(pStmt, 2):
686 sqlite3_column_text(pStmt, 2)
688 int n = sqlite3_column_bytes(pStmt,
[all...]
H A Dtest_func.c295 sqlite3_stmt *pStmt; local
301 rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0);
303 rc = sqlite3_step(pStmt);
305 sqlite3_result_value(pCtx, sqlite3_column_value(pStmt, 0));
307 rc = sqlite3_finalize(pStmt);
311 assert( pStmt==0 );
H A Dtclsqlite.c98 sqlite3_stmt *pStmt; /* The prepared statement */ member in struct:SqlPreparedStmt
439 sqlite3_finalize( pDb->stmtList->pStmt );
1055 sqlite3_stmt *pStmt; /* Prepared statement object */ local
1075 pStmt = pPreStmt->pStmt;
1093 nVar = sqlite3_bind_parameter_count(pStmt);
1103 if( SQLITE_OK!=sqlite3_prepare_v2(pDb->db, zSql, -1, &pStmt, pzOut) ){
1107 if( pStmt==0 ){
1121 nVar = sqlite3_bind_parameter_count(pStmt);
1126 pPreStmt->pStmt
1314 sqlite3_stmt *pStmt = p->pPreStmt->pStmt; local
1375 sqlite3_stmt *pStmt = pPreStmt->pStmt; local
1433 sqlite3_stmt *pStmt = p->pPreStmt->pStmt; local
1956 sqlite3_stmt *pStmt; /* A statement */ local
[all...]
H A Drecover.c495 sqlite3_stmt *pStmt; local
510 rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0);
517 rc = sqlite3_step(pStmt);
521 *piRootPage = sqlite3_column_int(pStmt, 0);
524 rc = sqlite3_step(pStmt);
531 sqlite3_finalize(pStmt);
536 sqlite3_stmt *pStmt; local
543 rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0);
550 rc = sqlite3_step(pStmt);
555 if( sqlite3_column_type(pStmt,
[all...]
/external/chromium_org/third_party/sqlite/src/ext/fts2/
H A Dfts2_tokenizer.c229 sqlite3_stmt *pStmt; local
232 rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0);
237 sqlite3_bind_text(pStmt, 1, zName, -1, SQLITE_STATIC);
238 sqlite3_bind_blob(pStmt, 2, &p, sizeof(p), SQLITE_STATIC);
239 sqlite3_step(pStmt);
241 return sqlite3_finalize(pStmt);
251 sqlite3_stmt *pStmt; local
255 rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0);
260 sqlite3_bind_text(pStmt, 1, zName, -1, SQLITE_STATIC);
261 if( SQLITE_ROW==sqlite3_step(pStmt) ){
[all...]
/external/chromium_org/third_party/sqlite/src/ext/fts3/
H A Dfts3_write.c240 sqlite3_stmt *pStmt; local
245 pStmt = p->aStmt[eStmt];
246 if( !pStmt ){
258 rc = sqlite3_prepare_v2(p->db, zSql, -1, &pStmt, NULL);
260 assert( rc==SQLITE_OK || pStmt==0 );
261 p->aStmt[eStmt] = pStmt;
266 int nParam = sqlite3_bind_parameter_count(pStmt);
268 rc = sqlite3_bind_value(pStmt, i+1, apVal[i]);
271 *pp = pStmt;
281 sqlite3_stmt *pStmt local
334 sqlite3_stmt *pStmt; local
365 sqlite3_stmt *pStmt; /* Statement used to obtain lock */ local
395 sqlite3_stmt *pStmt = 0; local
1102 sqlite3_stmt *pStmt; local
1436 sqlite3_stmt *pStmt; local
1460 sqlite3_stmt *pStmt; local
1722 sqlite3_stmt *pStmt; local
1898 sqlite3_stmt *pStmt; local
1918 sqlite3_stmt *pStmt; local
2337 sqlite3_stmt *pStmt; /* Statement used to insert the encoding */ local
2384 sqlite3_stmt *pStmt; /* Statement for reading and writing */ local
[all...]
H A Dfts3_expr.c768 sqlite3_stmt *pStmt; local
772 rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0);
777 sqlite3_bind_text(pStmt, 1, zName, -1, SQLITE_STATIC);
778 if( SQLITE_ROW==sqlite3_step(pStmt) ){
779 if( sqlite3_column_type(pStmt, 0)==SQLITE_BLOB ){
780 memcpy((void *)pp, sqlite3_column_blob(pStmt, 0), sizeof(*pp));
784 return sqlite3_finalize(pStmt);
/external/chromium_org/third_party/sqlite/src/tool/
H A Dspeedtest16.c68 sqlite3_stmt *pStmt; local
77 rc = sqlite3_prepare16_v2(db, utf16, -1, &pStmt, &stmtTail);
84 while( (rc=sqlite3_step(pStmt))==SQLITE_ROW ){ nRow++; }
90 rc = sqlite3_finalize(pStmt);
H A Dspeedtest8inst1.c38 sqlite3_stmt *pStmt; local
50 rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, &stmtTail);
60 while( (rc=sqlite3_step(pStmt))==SQLITE_ROW ){ nRow++; }
67 rc = sqlite3_finalize(pStmt);
H A Dspeedtest8.c57 sqlite3_stmt *pStmt; local
67 rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, &stmtTail);
76 while( (rc=sqlite3_step(pStmt))==SQLITE_ROW ){ nRow++; }
84 rc = sqlite3_finalize(pStmt);
/external/chromium_org/third_party/sqlite/src/test/
H A Dthreadtest3.c418 sqlite3_stmt *pStmt; /* Pre-compiled statement handle */ member in struct:Statement
535 sqlite3_finalize(pIter->pStmt);
568 if( 0==strcmp(sqlite3_sql(pRet->pStmt), zSql) ){
574 rc = sqlite3_prepare_v2(pDb->db, zSql, -1, &pRet->pStmt, 0);
579 assert( 0==strcmp(sqlite3_sql(pRet->pStmt), zSql) );
592 sqlite3_stmt *pStmt; /* The SQLite statement to return */ local
597 pStmt = pStatement->pStmt;
598 for(i=1; i<=sqlite3_bind_parameter_count(pStmt); i++){
599 const char *zName = sqlite3_bind_parameter_name(pStmt,
625 sqlite3_stmt *pStmt; /* SQL statement to execute */ local
664 sqlite3_stmt *pStmt; /* SQL statement to execute */ local
701 sqlite3_stmt *pStmt = pStatement->pStmt; local
[all...]
/external/sqlite/dist/orig/
H A Dshell.c474 sqlite3_stmt *pStmt; /* Current statement if any. */ member in struct:callback_data
786 if( i==1 && p->aiIndent && p->pStmt ){
897 }else if( aiType && aiType[i]==SQLITE_BLOB && p->pStmt ){
898 const void *pBlob = sqlite3_column_blob(p->pStmt, i);
899 int nBlob = sqlite3_column_bytes(p->pStmt, i);
1160 if( pArg && pArg->out && db && pArg->pStmt ){
1161 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FULLSCAN_STEP, bReset);
1163 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_SORT, bReset);
1165 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_AUTOINDEX, bReset);
1167 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_VM_STE
1290 sqlite3_stmt *pStmt = NULL; /* Statement to execute. */ local
2516 sqlite3_stmt *pStmt; local
2560 sqlite3_stmt *pStmt = NULL; /* A statement */ local
3182 sqlite3_stmt *pStmt; local
[all...]
/external/sqlite/dist/
H A Dshell.c479 sqlite3_stmt *pStmt; /* Current statement if any. */ member in struct:callback_data
791 if( i==1 && p->aiIndent && p->pStmt ){
902 }else if( aiType && aiType[i]==SQLITE_BLOB && p->pStmt ){
903 const void *pBlob = sqlite3_column_blob(p->pStmt, i);
904 int nBlob = sqlite3_column_bytes(p->pStmt, i);
1165 if( pArg && pArg->out && db && pArg->pStmt ){
1166 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FULLSCAN_STEP, bReset);
1168 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_SORT, bReset);
1170 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_AUTOINDEX, bReset);
1172 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_VM_STE
1295 sqlite3_stmt *pStmt = NULL; /* Statement to execute. */ local
2536 sqlite3_stmt *pStmt; local
2580 sqlite3_stmt *pStmt = NULL; /* A statement */ local
3202 sqlite3_stmt *pStmt; local
[all...]

Completed in 3738 milliseconds

12