HomeSort by relevance Sort by last modified time
    Searched defs:pStmt (Results 1 - 25 of 35) sorted by null

1 2

  /external/chromium_org/third_party/sqlite/src/src/
legacy.c 39 sqlite3_stmt *pStmt = 0; /* The current SQL statement */
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, i)!=SQLITE_NULL )
    [all...]
test9.c 115 sqlite3_stmt *pStmt;
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, 0)
    [all...]
vacuum.c 25 static int vacuumFinalize(sqlite3 *db, sqlite3_stmt *pStmt, char **pzErrMsg){
27 rc = sqlite3VdbeFinalize((Vdbe*)pStmt);
38 sqlite3_stmt *pStmt;
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;
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, 0))
    [all...]
test_superlock.c 69 sqlite3_stmt *pStmt; /* Compiled PRAGMA journal_mode statement */
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);
vdbeblob.c 31 sqlite3_stmt *pStmt; /* Statement holding cursor open */
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 || db->mallocFailed )
    [all...]
prepare.c 77 sqlite3_stmt *pStmt;
84 TESTONLY(rcp = ) sqlite3_prepare(db, argv[2], -1, &pStmt, 0);
100 sqlite3_finalize(pStmt);
test4.c 41 sqlite3_stmt *pStmt; /* Pending operation */
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==0 )
    [all...]
test7.c 64 sqlite3_stmt *pStmt; /* Pending operation */
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==0 )
    [all...]
test_func.c 295 sqlite3_stmt *pStmt;
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 );
test_server.c 225 sqlite3_stmt *pStmt; /* A specific statement */
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){
360 msg.pStmt = pStmt;
364 int sqlite3_client_reset(sqlite3_stmt *pStmt){
    [all...]
test_thread.c 487 int sqlite3_blocking_step(sqlite3_stmt *pStmt){
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;
544 pStmt = (sqlite3_stmt*)sqlite3TestTextToPtr(Tcl_GetString(objv[1]));
545 rc = sqlite3_blocking_step(pStmt);
565 sqlite3_stmt *pStmt = 0;
580 rc = sqlite3_blocking_prepare_v2(db, zSql, bytes, &pStmt, &zTail);
582 rc = sqlite3_prepare_v2(db, zSql, bytes, &pStmt, &zTail)
    [all...]
analyze.c 643 sqlite3_stmt *pStmt = 0;
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, 2)
    [all...]
test_stat.c 112 sqlite3_stmt *pStmt; /* Iterates through set of root pages */
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, 0)
    [all...]
test8.c 90 sqlite3_stmt *pStmt;
163 sqlite3_stmt *pStmt = 0;
176 rc = sqlite3_prepare(db, zSql, -1, &pStmt, 0);
183 nCol = sqlite3_column_count(pStmt);
190 const char *zName = sqlite3_column_name(pStmt, ii);
209 zSpace += sprintf(zSpace, "%s", sqlite3_column_name(pStmt, ii));
219 sqlite3_finalize(pStmt);
241 sqlite3_stmt *pStmt = 0;
259 rc = sqlite3_prepare(db, zSql, -1, &pStmt, 0);
265 while( pStmt && sqlite3_step(pStmt)==SQLITE_ROW )
    [all...]
  /external/chromium_org/third_party/sqlite/src/tool/
speedtest16.c 68 sqlite3_stmt *pStmt;
77 rc = sqlite3_prepare16_v2(db, utf16, -1, &pStmt, &stmtTail);
84 while( (rc=sqlite3_step(pStmt))==SQLITE_ROW ){ nRow++; }
90 rc = sqlite3_finalize(pStmt);
speedtest8.c 57 sqlite3_stmt *pStmt;
67 rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, &stmtTail);
76 while( (rc=sqlite3_step(pStmt))==SQLITE_ROW ){ nRow++; }
84 rc = sqlite3_finalize(pStmt);
speedtest8inst1.c 38 sqlite3_stmt *pStmt;
50 rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, &stmtTail);
60 while( (rc=sqlite3_step(pStmt))==SQLITE_ROW ){ nRow++; }
67 rc = sqlite3_finalize(pStmt);
  /external/chromium_org/third_party/sqlite/src/ext/fts2/
fts2_tokenizer.c 229 sqlite3_stmt *pStmt;
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;
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/
fts3_tokenizer.c 335 sqlite3_stmt *pStmt;
338 rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0);
343 sqlite3_bind_text(pStmt, 1, zName, -1, SQLITE_STATIC);
344 sqlite3_bind_blob(pStmt, 2, &p, sizeof(p), SQLITE_STATIC);
345 sqlite3_step(pStmt);
347 return sqlite3_finalize(pStmt);
357 sqlite3_stmt *pStmt;
361 rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0);
366 sqlite3_bind_text(pStmt, 1, zName, -1, SQLITE_STATIC);
367 if( SQLITE_ROW==sqlite3_step(pStmt) ){
    [all...]
fts3_expr.c 768 sqlite3_stmt *pStmt;
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);
fts3Int.h 165 u8 isRequireSeek; /* True if must seek pStmt to %_content row */
166 sqlite3_stmt *pStmt; /* Prepared statement in use by the cursor */
fts3_snippet.c 674 zDoc = (const char *)sqlite3_column_text(pCsr->pStmt, iCol);
676 if( sqlite3_column_type(pCsr->pStmt, iCol)!=SQLITE_NULL ){
681 nDoc = sqlite3_column_bytes(pCsr->pStmt, iCol);
950 sqlite3_stmt *pStmt;
958 pStmt = *ppStmt;
959 assert( sqlite3_data_count(pStmt)==1 );
961 a = sqlite3_column_blob(pStmt, 0);
    [all...]
fts3.c 622 sqlite3_stmt *pStmt; /* Compiled "PRAGMA %Q.page_size" statement */
628 rc = sqlite3_prepare(p->db, zSql, -1, &pStmt, 0);
630 sqlite3_step(pStmt);
631 p->nPgsz = sqlite3_column_int(pStmt, 0);
632 rc = sqlite3_finalize(pStmt);
    [all...]
  /external/chromium_org/third_party/leveldatabase/src/doc/bench/
db_bench_sqlite3.cc 651 sqlite3_stmt *pStmt;
654 status = sqlite3_prepare_v2(db_, read_str.c_str(), -1, &pStmt, NULL);
656 for (int i = 0; i < reads_ && SQLITE_ROW == sqlite3_step(pStmt); i++) {
657 bytes_ += sqlite3_column_bytes(pStmt, 1) + sqlite3_column_bytes(pStmt, 2);
661 status = sqlite3_finalize(pStmt);
  /external/chromium_org/third_party/sqlite/src/ext/fts1/
fulltext.c 578 sqlite3_stmt *pStmt;
991 sqlite3_finalize(c->pStmt);
1007 rc = sqlite3_step(c->pStmt);
1020 rc = sqlite3_reset(c->pStmt);
1028 rc = sqlite3_bind_int64(c->pStmt, 1, iDocid);
1031 rc = sqlite3_step(c->pStmt);
    [all...]

Completed in 196 milliseconds

1 2