Home
last modified time | relevance | path

Searched refs:pStmt (Results 1 – 25 of 95) sorted by relevance

1234

/sqlite-3.40.0/ext/fts3/tool/
H A Dfts3view.c60 sqlite3_stmt *pStmt; in prepare() local
72 return pStmt; in prepare()
94 sqlite3_stmt *pStmt; in showSchema() local
95 pStmt = prepare(db, in showSchema()
153 sqlite3_stmt *pStmt; in showStat() local
186 sqlite3_stmt *pStmt; in showVocabulary() local
262 pStmt = prepare(db, in showVocabulary()
299 pStmt = prepare(db, in showSegmentStats()
309 pStmt = prepare(db, in showSegmentStats()
320 pStmt = prepare(db, in showSegmentStats()
[all …]
/sqlite-3.40.0/src/
H A Dvdbeapi.c29 Vdbe *p = (Vdbe*)pStmt; in sqlite3_expired()
101 if( pStmt==0 ){ in sqlite3_finalize()
130 if( pStmt==0 ){ in sqlite3_reset()
152 Vdbe *p = (Vdbe*)pStmt; in sqlite3_clear_bindings()
1307 if( pStmt==0 ){ in columnName()
1313 p = (Vdbe *)pStmt; in columnName()
1772 return pStmt ? ((Vdbe*)pStmt)->db : 0; in sqlite3_db_handle()
1780 return pStmt ? ((Vdbe*)pStmt)->readOnly : 1; in sqlite3_stmt_readonly()
1788 return pStmt ? ((Vdbe*)pStmt)->explain : 0; in sqlite3_stmt_isexplain()
1814 if( pStmt==0 ){ in sqlite3_next_stmt()
[all …]
H A Dtest8.c94 sqlite3_stmt *pStmt; member
269 while( pStmt && sqlite3_step(pStmt)==SQLITE_ROW ){ in getIndexArray()
295 if( pStmt ){ in getIndexArray()
573 sqlite3_stmt *pStmt = pCur->pStmt; in echoClose() local
574 pCur->pStmt = 0; in echoClose()
599 if( pCur->pStmt ){ in echoNext()
605 pCur->pStmt = 0; in echoNext()
617 sqlite3_stmt *pStmt = ((echo_cursor *)cur)->pStmt; in echoColumn() local
623 if( !pStmt ){ in echoColumn()
636 sqlite3_stmt *pStmt = ((echo_cursor *)cur)->pStmt; in echoRowid() local
[all …]
H A Dlegacy.c39 sqlite3_stmt *pStmt = 0; /* The current SQL statement */ in sqlite3_exec() local
52 pStmt = 0; in sqlite3_exec()
54 assert( rc==SQLITE_OK || pStmt==0 ); in sqlite3_exec()
58 if( !pStmt ){ in sqlite3_exec()
67 rc = sqlite3_step(pStmt); in sqlite3_exec()
74 nCol = sqlite3_column_count(pStmt); in sqlite3_exec()
103 sqlite3VdbeFinalize((Vdbe *)pStmt); in sqlite3_exec()
104 pStmt = 0; in sqlite3_exec()
111 rc = sqlite3VdbeFinalize((Vdbe *)pStmt); in sqlite3_exec()
112 pStmt = 0; in sqlite3_exec()
[all …]
H A Dvdbeblob.c57 Vdbe *v = (Vdbe *)p->pStmt; in blobSeekToRow()
74 rc = sqlite3_step(p->pStmt); in blobSeekToRow()
90 p->pStmt = 0; in blobSeekToRow()
101 }else if( p->pStmt ){ in blobSeekToRow()
103 p->pStmt = 0; in blobSeekToRow()
248 if( pBlob->pStmt ){ in sqlite3_blob_open()
342 if( pBlob && pBlob->pStmt ) sqlite3VdbeFinalize((Vdbe *)pBlob->pStmt); in sqlite3_blob_open()
363 sqlite3_stmt *pStmt = p->pStmt; in sqlite3_blob_close() local
393 v = (Vdbe*)p->pStmt; in blobReadWrite()
439 p->pStmt = 0; in blobReadWrite()
[all …]
H A Dtest9.c119 sqlite3_stmt *pStmt; in c_misuse_test() local
144 pStmt = (sqlite3_stmt*)1234; in c_misuse_test()
145 rc = sqlite3_prepare(db, 0, 0, &pStmt, 0); in c_misuse_test()
152 pStmt = (sqlite3_stmt*)1234; in c_misuse_test()
153 rc = sqlite3_prepare_v2(db, 0, 0, &pStmt, 0); in c_misuse_test()
158 assert( pStmt==0 ); in c_misuse_test()
161 pStmt = (sqlite3_stmt*)1234; in c_misuse_test()
162 rc = sqlite3_prepare16(db, 0, 0, &pStmt, 0); in c_misuse_test()
167 assert( pStmt==0 ); in c_misuse_test()
168 pStmt = (sqlite3_stmt*)1234; in c_misuse_test()
[all …]
H A Dtest1.c2119 sqlite3_stmt *pStmt; in test_finalize() local
2131 if( pStmt ){ in test_finalize()
2664 pStmt = sqlite3_next_stmt(db, pStmt); in test_next_stmt()
2665 if( pStmt ){ in test_next_stmt()
2802 if( pStmt && sqlite3TestErrCode(interp, StmtToDb(pStmt), rc) ){ in test_reset()
4581 if( pStmt ){ in test_prepare()
4655 if( pStmt ){ in test_prepare_v2()
4728 if( pStmt ){ in test_prepare_v3()
4769 if( pStmt ){ in test_prepare_tkt3134()
4828 if( pStmt ){ in test_prepare16()
[all …]
H A Dtest_server.c225 sqlite3_stmt *pStmt; /* A specific statement */ member
353 *ppStmt = msg.pStmt; in sqlite3_client_prepare()
357 int sqlite3_client_step(sqlite3_stmt *pStmt){ in sqlite3_client_step() argument
360 msg.pStmt = pStmt; in sqlite3_client_step()
364 int sqlite3_client_reset(sqlite3_stmt *pStmt){ in sqlite3_client_reset() argument
367 msg.pStmt = pStmt; in sqlite3_client_reset()
371 int sqlite3_client_finalize(sqlite3_stmt *pStmt){ in sqlite3_client_finalize() argument
374 msg.pStmt = pStmt; in sqlite3_client_finalize()
433 pMsg->errCode = sqlite3_step(pMsg->pStmt); in sqlite3_server()
437 pMsg->errCode = sqlite3_reset(pMsg->pStmt); in sqlite3_server()
[all …]
/sqlite-3.40.0/tool/
H A Dsqldiff.c163 sqlite3_stmt *pStmt; in db_vprepare() local
173 return pStmt; in db_vprepare()
177 sqlite3_stmt *pStmt; in db_prepare() local
181 return pStmt; in db_prepare()
302 sqlite3_reset(pStmt); in columnNames()
338 sqlite3_finalize(pStmt); in columnNames()
462 sqlite3_finalize(pStmt); in dump_table()
514 sqlite3_finalize(pStmt); in dump_table()
689 pStmt = db_prepare( in diff_one_table()
750 pStmt = db_prepare( in diff_one_table()
[all …]
H A Dindex_usage.c113 sqlite3_finalize(pStmt); in main()
114 pStmt = 0; in main()
202 sqlite3_finalize(pStmt); in main()
212 -1, &pStmt, 0); in main()
220 sqlite3_column_int(pStmt, 2), in main()
221 sqlite3_column_text(pStmt, 1), in main()
222 sqlite3_column_text(pStmt, 0), in main()
223 sqlite3_column_text(pStmt, 3)); in main()
225 sqlite3_finalize(pStmt); in main()
226 pStmt = 0; in main()
[all …]
H A Dfast_vacuum.c56 static void vacuumFinalize(sqlite3_stmt *pStmt){ in vacuumFinalize() argument
57 sqlite3 *db = sqlite3_db_handle(pStmt); in vacuumFinalize()
58 int rc = sqlite3_finalize(pStmt); in vacuumFinalize()
71 sqlite3_stmt *pStmt; in execSql() local
81 sqlite3_step(pStmt); in execSql()
82 vacuumFinalize(pStmt); in execSql()
94 sqlite3_stmt *pStmt; in execExecSql() local
98 rc = sqlite3_prepare(db, zSql, -1, &pStmt, 0); in execExecSql()
103 while( SQLITE_ROW==sqlite3_step(pStmt) ){ in execExecSql()
104 execSql(db, (char*)sqlite3_column_text(pStmt, 0)); in execExecSql()
[all …]
/sqlite-3.40.0/ext/userauth/
H A Duserauth.c39 sqlite3_stmt *pStmt; in sqlite3UserAuthPrepare() local
55 pStmt = 0; in sqlite3UserAuthPrepare()
57 return pStmt; in sqlite3UserAuthPrepare()
89 sqlite3_stmt *pStmt; in userAuthCheckLogin() local
240 sqlite3_stmt *pStmt; in sqlite3_user_add() local
253 sqlite3_step(pStmt); in sqlite3_user_add()
263 sqlite3_step(pStmt); in sqlite3_user_add()
287 sqlite3_stmt *pStmt; in sqlite3_user_change() local
312 if( pStmt==0 ){ in sqlite3_user_change()
335 sqlite3_stmt *pStmt; in sqlite3_user_delete() local
[all …]
/sqlite-3.40.0/test/
H A Dkvtest.c389 sqlite3_stmt *pStmt; in statMain() local
429 sqlite3_finalize(pStmt); in statMain()
437 sqlite3_finalize(pStmt); in statMain()
445 sqlite3_finalize(pStmt); in statMain()
453 sqlite3_finalize(pStmt); in statMain()
502 sqlite3_stmt *pStmt; in exportMain() local
930 pStmt = 0; in runMain()
943 pStmt = 0; in runMain()
966 pStmt = 0; in runMain()
1024 if( pStmt==0 ){ in runMain()
[all …]
H A Dfuzzinvariants.c81 nParam = sqlite3_bind_parameter_count(pStmt); in fuzz_invariant()
83 zTest = fuzz_invariant_sql(pStmt, iCnt); in fuzz_invariant()
96 nCol = sqlite3_column_count(pStmt); in fuzz_invariant()
242 sqlite3 *db = sqlite3_db_handle(pStmt); in fuzz_invariant_sql()
244 int nCol = sqlite3_column_count(pStmt); in fuzz_invariant_sql()
258 zIn = sqlite3_sql(pStmt); in fuzz_invariant_sql()
271 pBase = pStmt; in fuzz_invariant_sql()
295 if( pBase!=pStmt ) sqlite3_finalize(pBase); in fuzz_invariant_sql()
400 nCol = sqlite3_column_count(pStmt); in printRow()
403 switch( sqlite3_column_type(pStmt, i) ){ in printRow()
[all …]
H A Dspeedtest1.c426 if( g.pStmt ){ in speedtest1_end_test()
427 sqlite3_finalize(g.pStmt); in speedtest1_end_test()
428 g.pStmt = 0; in speedtest1_end_test()
513 sqlite3_stmt *pStmt; in speedtest1_once() local
534 sqlite3_finalize(pStmt); in speedtest1_once()
552 if( g.pStmt ) sqlite3_finalize(g.pStmt); in speedtest1_prepare()
565 assert( g.pStmt ); in speedtest1_run()
622 sqlite3_finalize(g.pStmt); in speedtest1_run()
623 g.pStmt = pNew; in speedtest1_run()
627 sqlite3_reset(g.pStmt); in speedtest1_run()
[all …]
H A Dfuzzcheck.c514 sqlite3_stmt *pStmt; in blobListLoadFromDb() local
541 sqlite3_finalize(pStmt); in blobListLoadFromDb()
1033 sqlite3_stmt *pStmt; in runDbSql() local
1563 sqlite3_stmt *pStmt; in runSql() local
1567 pStmt = 0; in runSql()
1577 if( pStmt==0 ){ in runSql()
1584 if( pStmt ){ in runSql()
2039 if( pStmt && sqlite3_step(pStmt)==SQLITE_ROW ){ in main()
2046 if( pStmt in main()
2054 if( pStmt in main()
[all …]
H A Dthreadtest4.c108 sqlite3_stmt *pStmt = 0; in prep_sql() local
121 return pStmt; in prep_sql()
131 sqlite3_stmt *pStmt = 0; in run_sql() local
147 sqlite3_reset(pStmt); in run_sql()
166 sqlite3_finalize(pStmt); in run_sql()
289 sqlite3_stmt *pStmt; in worker_thread() local
302 rc = sqlite3_step(pStmt); in worker_thread()
308 sqlite3_finalize(pStmt); in worker_thread()
332 pStmt = prep_sql(p->db, in worker_thread()
341 rc = sqlite3_step(pStmt); in worker_thread()
[all …]
H A Doptfuzz.c40 sqlite3_stmt *pStmt = 0; in prepare_sql() local
46 rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0); in prepare_sql()
53 return pStmt; in prepare_sql()
107 assert( rc==SQLITE_OK || pStmt==0 ); in optfuzz_exec()
112 if( !pStmt ) continue; in optfuzz_exec()
114 nCol = sqlite3_column_count(pStmt); in optfuzz_exec()
116 while( sqlite3_step(pStmt)==SQLITE_ROW ){ in optfuzz_exec()
150 zOutTab, sqlite3_sql(pStmt) in optfuzz_exec()
158 sqlite3_finalize(pStmt); in optfuzz_exec()
159 pStmt = 0; in optfuzz_exec()
[all …]
H A Datrc.c39 sqlite3_stmt *pStmt; in rename_all_columns_of_table() local
45 -1, &pStmt, 0); in rename_all_columns_of_table()
47 sqlite3_bind_text(pStmt, 1, zTab, -1, SQLITE_STATIC); in rename_all_columns_of_table()
48 while( sqlite3_step(pStmt)==SQLITE_ROW ){ in rename_all_columns_of_table()
49 const char *zCol = (const char*)sqlite3_column_text(pStmt, 0); in rename_all_columns_of_table()
62 sqlite3_finalize(pStmt); in rename_all_columns_of_table()
73 sqlite3_stmt *pStmt; in rename_all_tables() local
80 -1, &pStmt, 0); in rename_all_tables()
82 while( sqlite3_step(pStmt)==SQLITE_ROW ){ in rename_all_tables()
83 const char *zTab = (const char*)sqlite3_column_text(pStmt, 0); in rename_all_tables()
[all …]
/sqlite-3.40.0/ext/misc/
H A Dunionvtab.c399 int rc = sqlite3_reset(pStmt);
416 int rc = sqlite3_finalize(pStmt); in unionFinalize()
728 if( pCsr->pStmt ){ in unionFinalizeCsrStmt()
732 pCsr->pStmt = 0; in unionFinalizeCsrStmt()
977 unionFinalize(&rc, pStmt, pzErr); in unionConnect()
978 pStmt = 0; in unionConnect()
1018 unionFinalize(&rc, pStmt, pzErr); in unionConnect()
1059 assert( pCsr->pStmt ); in doUnionNext()
1077 assert( pCsr->pStmt ); in doUnionNext()
1127 return pCsr->pStmt==0; in unionEof()
[all …]
H A Dscrub.c143 sqlite3_stmt *pStmt; in scrubBackupPrepare() local
152 return pStmt; in scrubBackupPrepare()
158 sqlite3_stmt *pStmt; in scrubBackupOpenSrc() local
184 if( pStmt==0 ) return; in scrubBackupOpenSrc()
191 sqlite3_finalize(pStmt); in scrubBackupOpenSrc()
194 if( pStmt==0 ) return; in scrubBackupOpenSrc()
201 sqlite3_finalize(pStmt); in scrubBackupOpenSrc()
211 sqlite3_stmt *pStmt; in scrubBackupOpenDest() local
245 if( pStmt==0 ) return; in scrubBackupOpenDest()
253 sqlite3_finalize(pStmt); in scrubBackupOpenDest()
[all …]
H A Dbtreeinfo.c202 sqlite3_finalize(pCsr->pStmt); in binfoClose()
213 pCsr->rc = sqlite3_step(pCsr->pStmt); in binfoNext()
250 sqlite3_finalize(pCsr->pStmt); in binfoFilter()
251 pCsr->pStmt = 0; in binfoFilter()
276 sqlite3_stmt *pStmt = 0; in binfoCompute() local
284 &pStmt, 0); in binfoCompute()
288 sqlite3_bind_int(pStmt, 1, pgno); in binfoCompute()
289 rc = sqlite3_step(pStmt); in binfoCompute()
321 sqlite3_reset(pStmt); in binfoCompute()
323 sqlite3_finalize(pStmt); in binfoCompute()
[all …]
H A Ddbdump.c180 sqlite3_stmt *pStmt = 0; in tableColumnList() local
194 while( sqlite3_step(pStmt)==SQLITE_ROW ){ in tableColumnList()
205 if( sqlite3_column_int(pStmt, 5) ){ in tableColumnList()
217 sqlite3_finalize(pStmt); in tableColumnList()
218 pStmt = 0; in tableColumnList()
244 rc = sqlite3_step(pStmt); in tableColumnList()
245 sqlite3_finalize(pStmt); in tableColumnList()
246 pStmt = 0; in tableColumnList()
272 sqlite3_finalize(pStmt); in tableColumnList()
387 sqlite3_stmt *pStmt; in dump_callback() local
[all …]
/sqlite-3.40.0/ext/fts3/
H A Dfts3_write.c394 sqlite3_stmt *pStmt; in fts3SqlStmt() local
400 if( !pStmt ){ in fts3SqlStmt()
427 *pp = pStmt; in fts3SqlStmt()
447 pStmt = 0; in fts3SelectDocsize()
453 *ppStmt = pStmt; in fts3SelectDocsize()
471 pStmt = 0; in sqlite3Fts3SelectDoctotal()
474 *ppStmt = pStmt; in sqlite3Fts3SelectDoctotal()
500 sqlite3_stmt *pStmt; in fts3SqlExec() local
627 *ppStmt = pStmt; in sqlite3Fts3AllSegdirs()
3605 pStmt = 0; in fts3DoRebuild()
[all …]
/sqlite-3.40.0/ext/recover/
H A Ddbdata.c188 sqlite3_finalize(pTab->pStmt); in dbdataDisconnect()
278 if( pTab->pStmt==0 ){ in dbdataResetCursor()
279 pTab->pStmt = pCsr->pStmt; in dbdataResetCursor()
283 pCsr->pStmt = 0; in dbdataResetCursor()
335 sqlite3_stmt *pStmt = pCsr->pStmt; in dbdataLoadPage() local
357 rc2 = sqlite3_reset(pStmt); in dbdataLoadPage()
721 sqlite3_stmt *pStmt = 0; in dbdataDbsize() local
787 if( pTab->pStmt ){ in dbdataFilter()
788 pCsr->pStmt = pTab->pStmt; in dbdataFilter()
789 pTab->pStmt = 0; in dbdataFilter()
[all …]

1234