HomeSort by relevance Sort by last modified time
    Searched refs:zSql (Results 1 - 25 of 44) sorted by null

1 2

  /external/chromium_org/third_party/sqlite/src/src/
complete.c 104 int sqlite3_complete(const char *zSql){
137 while( *zSql ){
138 switch( *zSql ){
152 if( zSql[1]!='*' ){
156 zSql += 2;
157 while( zSql[0] && (zSql[0]!='*' || zSql[1]!='/') ){ zSql++; }
158 if( zSql[0]==0 ) return 0
    [all...]
legacy.c 32 const char *zSql, /* The SQL to be executed */
45 if( zSql==0 ) zSql = "";
49 while( (rc==SQLITE_OK || (rc==SQLITE_SCHEMA && (++nRetry)<2)) && zSql[0] ){
54 rc = sqlite3_prepare(db, zSql, -1, &pStmt, &zLeftover);
61 zSql = zLeftover;
113 zSql = zLeftover;
114 while( sqlite3Isspace(zSql[0]) ) zSql++;
prepare.c 316 char *zSql;
317 zSql = sqlite3MPrintf(db,
326 rc = sqlite3_exec(db, zSql, sqlite3InitCallback, &initData, 0);
332 sqlite3DbFree(db, zSql);
519 ** Compile the UTF-8 encoded SQL statement zSql into a statement handle.
523 const char *zSql, /* UTF-8 encoded SQL statement. */
524 int nBytes, /* Length of zSql in bytes. */
587 if( nBytes>=0 && (nBytes==0 || zSql[nBytes-1]!=0) ){
597 zSqlCopy = sqlite3DbStrNDup(db, zSql, nBytes);
601 pParse->zTail = &zSql[pParse->zTail-zSqlCopy]
    [all...]
test_schema.c 176 char *zSql = 0;
190 /* Set zSql to the SQL to pull the list of tables from the
196 zSql = sqlite3_mprintf(
201 zSql = sqlite3_mprintf(
206 if( !zSql ){
211 rc = sqlite3_prepare(pVtab->db, zSql, -1, &pCur->pTableList, 0);
212 sqlite3_free(zSql);
216 /* Set zSql to the SQL to the table_info pragma for the table currently
220 zSql = sqlite3_mprintf("PRAGMA %Q.table_info(%Q)",
225 if( !zSql ){
    [all...]
vacuum.c 35 ** Execute zSql on database db. Return an error code.
37 static int execSql(sqlite3 *db, char **pzErrMsg, const char *zSql){
40 if( !zSql ){
43 if( SQLITE_OK!=sqlite3_prepare(db, zSql, -1, &pStmt, 0) ){
53 ** Execute zSql on database db. The statement returns exactly
56 static int execExecSql(sqlite3 *db, char **pzErrMsg, const char *zSql){
60 rc = sqlite3_prepare(db, zSql, -1, &pStmt, 0);
99 char *zSql = 0; /* SQL statements */
148 zSql = "ATTACH ':memory:' AS vacuum_db;";
150 zSql = "ATTACH '' AS vacuum_db;"
    [all...]
vdbetrace.c 22 ** zSql is a zero-terminated string of UTF-8 SQL text. Return the number of
27 static int findNextHostParameter(const char *zSql, int *pnToken){
33 while( zSql[0] ){
34 n = sqlite3GetToken((u8*)zSql, &tokenType);
41 zSql += n;
tokenize.c 388 int sqlite3RunParser(Parse *pParse, const char *zSql, char **pzErrMsg){
404 pParse->zTail = zSql;
420 while( !db->mallocFailed && zSql[i]!=0 ){
422 pParse->sLastToken.z = &zSql[i];
423 pParse->sLastToken.n = sqlite3GetToken((unsigned char*)&zSql[i],&tokenType);
446 pParse->zTail = &zSql[i];
460 if( zSql[i]==0 && nErr==0 && pParse->rc==SQLITE_OK ){
463 pParse->zTail = &zSql[i];
test_intarray.c 236 char *zSql;
237 zSql = sqlite3_mprintf("CREATE VIRTUAL TABLE temp.%Q USING %Q",
239 rc = sqlite3_exec(db, zSql, 0, 0, 0);
240 sqlite3_free(zSql);
test_thread.c 510 const char *zSql, /* UTF-8 encoded SQL statement. */
511 int nSql, /* Length of zSql in bytes. */
516 while( SQLITE_LOCKED==(rc = sqlite3_prepare_v2(db, zSql, nSql, ppStmt, pz)) ){
562 const char *zSql;
576 zSql = Tcl_GetString(objv[2]);
580 rc = sqlite3_blocking_prepare_v2(db, zSql, bytes, &pStmt, &zTail);
582 rc = sqlite3_prepare_v2(db, zSql, bytes, &pStmt, &zTail);
588 bytes = bytes - (zTail-zSql);
alter.c 42 unsigned char const *zSql = sqlite3_value_text(argv[0]);
47 unsigned char const *zCsr = zSql;
59 if( zSql ){
80 zRet = sqlite3MPrintf(db, "%.*s\"%w\"%s", ((u8*)tname.z) - zSql, zSql,
162 unsigned char const *zSql = sqlite3_value_text(argv[0]);
168 unsigned char const *zCsr = zSql;
180 if( zSql ){
219 zRet = sqlite3MPrintf(db, "%.*s\"%w\"%s", ((u8*)tname.z) - zSql, zSql,
    [all...]
analyze.c 604 char *zSql;
627 zSql = sqlite3MPrintf(db,
629 if( zSql==0 ){
632 rc = sqlite3_exec(db, zSql, analysisLoader, &sInfo, 0);
633 sqlite3DbFree(db, zSql);
645 zSql = sqlite3MPrintf(db,
647 if( !zSql ){
650 rc = sqlite3_prepare(db, zSql, -1, &pStmt, 0);
651 sqlite3DbFree(db, zSql);
table.c 120 const char *zSql, /* The SQL to be executed */
145 rc = sqlite3_exec(db, zSql, sqlite3_get_table_cb, &res, pzErrMsg);
test1.c 315 char *zSql;
324 zSql = sqlite3_mprintf(argv[2], argv[3]);
325 rc = sqlite3_exec(db, zSql, exec_printf_cb, &str, &zErr);
326 sqlite3_free(zSql);
354 char zSql[500];
363 for(i=j=0; i<sizeof(zSql) && zHex[j]; i++, j++){
365 zSql[i] = (testHexToInt(zHex[j+1])<<4) + testHexToInt(zHex[j+2]);
368 zSql[i] = zHex[j];
371 zSql[i] = 0;
373 rc = sqlite3_exec(db, zSql, exec_printf_cb, &str, &zErr)
    [all...]
tclsqlite.c 99 int nSql; /* chars in zSql[] */
100 const char *zSql; /* Text of the SQL statement */
537 static void DbTraceHandler(void *cd, const char *zSql){
543 Tcl_DStringAppendElement(&str, zSql);
555 static void DbProfileHandler(void *cd, const char *zSql, sqlite_uint64 tm){
563 Tcl_DStringAppendElement(&str, zSql);
    [all...]
test_server.c 342 const char *zSql,
350 msg.zIn = zSql;
  /external/chromium_org/third_party/sqlite/src/tool/
speedtest8inst1.c 37 static void prepareAndRun(sqlite3_vfs *pInstVfs, sqlite3 *db, const char *zSql){
46 sqlite3_snprintf(1023, zMessage, "sqlite3_prepare_v2: %s", zSql);
50 rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, &stmtTail);
52 sqlite3_instvfs_binarylog_call(pInstVfs,BINARYLOG_PREPARE_V2,iTime,rc,zSql);
57 sqlite3_snprintf(1023, zMessage, "sqlite3_step loop: %s", zSql);
62 sqlite3_instvfs_binarylog_call(pInstVfs, BINARYLOG_STEP, iTime, rc, zSql);
64 sqlite3_snprintf(1023, zMessage, "sqlite3_finalize: %s", zSql);
69 sqlite3_instvfs_binarylog_call(pInstVfs, BINARYLOG_FINALIZE, iTime, rc, zSql);
147 char *zSql = 0;
175 zSql = readScriptFile(zScript, &nSql)
    [all...]
speedtest16.c 66 static void prepareAndRun(sqlite3 *db, const char *zSql){
74 printf("SQL statement: [%s]\n", zSql);
75 utf16 = asciiToUtf16le(zSql);
103 char *zSql;
120 zSql = malloc( nSql+1 );
122 nSql = fread(zSql, 1, nSql, in);
123 zSql[nSql] = 0;
135 if( zSql[j]==';' ){
137 char c = zSql[j+1];
138 zSql[j+1] = 0
    [all...]
speedtest8.c 56 static void prepareAndRun(sqlite3 *db, const char *zSql, int bQuiet){
65 if (!bQuiet) printf("SQL statement: [%s]\n", zSql);
67 rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, &stmtTail);
97 char *zSql;
189 zSql = malloc( nSql+1 );
191 nSql = fread(zSql, 1, nSql, in);
192 zSql[nSql] = 0;
205 if( zSql[j]==';' ){
207 char c = zSql[j+1];
208 zSql[j+1] = 0
    [all...]
rollback-test.c 60 static void runSql(sqlite3 *db, const char *zSql){
64 rc = sqlite3_exec(db, zSql, execCallback, 0, &zErr);
  /external/chromium_org/third_party/sqlite/src/test/
threadtest1.c 103 char *zSql;
109 zSql = sqlite3_vmprintf(zFormat, ap);
113 if( verbose ) printf("QUERY %s: %s\n", zFile, zSql);
114 rc = sqlite3_exec(db, zSql, db_query_callback, &sResult, &zErrMsg);
117 rc = sqlite3_exec(db, zSql, db_query_callback, &sResult, &zErrMsg);
119 if( verbose ) printf("DONE %s %s\n", zFile, zSql);
121 fprintf(stdout,"%s: query failed: %s - %s\n", zFile, zSql, zErrMsg);
123 free(zSql);
126 sqlite3_free(zSql);
138 char *zSql;
    [all...]
threadtest3.c 552 const char *zSql /* SQL script to execute */
555 pErr->rc = sqlite3_exec(pDb->db, zSql, 0, 0, &pErr->zErr);
562 const char *zSql /* SQL statement */
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) );
    [all...]
  /external/sqlite/dist/orig/
shell.c 1110 const char *zSql, /* SQL to be evaluated */
    [all...]
  /external/sqlite/dist/
shell.c 1115 const char *zSql, /* SQL to be evaluated */
    [all...]
  /external/chromium_org/third_party/sqlite/src/ext/fts2/
fts2_tokenizer.c 230 const char zSql[] = "SELECT fts2_tokenizer(?, ?)";
232 rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0);
252 const char zSql[] = "SELECT fts2_tokenizer(?)";
255 rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0);
  /external/chromium_org/third_party/sqlite/src/ext/rtree/
rtree.c     [all...]

Completed in 772 milliseconds

1 2