Lines Matching refs:zSql
181 char *zSql; in tableColumnList() local
189 zSql = sqlite3_mprintf("PRAGMA table_info=%Q", zTab); in tableColumnList()
190 if( zSql==0 ) return 0; in tableColumnList()
191 rc = sqlite3_prepare_v2(p->db, zSql, -1, &pStmt, 0); in tableColumnList()
192 sqlite3_free(zSql); in tableColumnList()
235 zSql = sqlite3_mprintf("SELECT 1 FROM pragma_index_list(%Q)" in tableColumnList()
237 if( zSql==0 ) goto col_oom; in tableColumnList()
238 rc = sqlite3_prepare_v2(p->db, zSql, -1, &pStmt, 0); in tableColumnList()
239 sqlite3_free(zSql); in tableColumnList()
385 const char *zSql; in dump_callback() local
393 zSql = azArg[2]; in dump_callback()
401 }else if( strncmp(zSql, "CREATE VIRTUAL TABLE", 20)==0 ){ in dump_callback()
409 zTable, zTable, zSql); in dump_callback()
412 if( sqlite3_strglob("CREATE TABLE ['\"]*", zSql)==0 ){ in dump_callback()
414 p->xCallback(zSql+13, p->pArg); in dump_callback()
416 p->xCallback(zSql, p->pArg); in dump_callback()
556 char *zSql; in output_sql_from_query() local
559 zSql = sqlite3_vmprintf(zSelect, ap); in output_sql_from_query()
561 if( zSql==0 ){ in output_sql_from_query()
566 rc = sqlite3_prepare_v2(p->db, zSql, -1, &pSelect, 0); in output_sql_from_query()
567 sqlite3_free(zSql); in output_sql_from_query()