/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...] |
vdbeapi.c | 28 int sqlite3_expired(sqlite3_stmt *pStmt){ 29 Vdbe *p = (Vdbe*)pStmt; 65 int sqlite3_finalize(sqlite3_stmt *pStmt){ 67 if( pStmt==0 ){ 72 Vdbe *v = (Vdbe*)pStmt; 97 int sqlite3_reset(sqlite3_stmt *pStmt){ 99 if( pStmt==0 ){ 102 Vdbe *v = (Vdbe*)pStmt; 116 int sqlite3_clear_bindings(sqlite3_stmt *pStmt){ 119 Vdbe *p = (Vdbe*)pStmt; [all...] |
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...] |
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...] |
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...] |
test1.c | [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_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...] |
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...] |
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...] |
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);
|
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_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 );
|
tclsqlite.c | 98 sqlite3_stmt *pStmt; /* The prepared statement */ 439 sqlite3_finalize( pDb->stmtList->pStmt ); [all...] |
recover.c | 495 sqlite3_stmt *pStmt; 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; 543 rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0); 550 rc = sqlite3_step(pStmt); 555 if( sqlite3_column_type(pStmt, 0)==SQLITE_TEXT ) [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/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_write.c | 240 sqlite3_stmt *pStmt; 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 = 0; /* Statement requested from fts3SqlStmt() * [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);
|
/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);
|
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);
|
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);
|
/external/chromium_org/third_party/sqlite/src/test/ |
threadtest3.c | 418 sqlite3_stmt *pStmt; /* Pre-compiled statement handle */ 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 */ 597 pStmt = pStatement->pStmt; 598 for(i=1; i<=sqlite3_bind_parameter_count(pStmt); i++){ 599 const char *zName = sqlite3_bind_parameter_name(pStmt, i) [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);
|