/external/chromium_org/third_party/sqlite/src/test/ |
D | crashtest1.c | 28 char *zErr; in do_some_sql() local 42 db = sqlite_open("./test.db", 0, &zErr); in do_some_sql() 44 printf("ERROR: %s\n", zErr); in do_some_sql() 45 if( strcmp(zErr,"database disk image is malformed")==0 ){ in do_some_sql() 54 "INSERT INTO t1 VALUES(%d,'%d%s')", 0, 0, &zErr, in do_some_sql() 58 printf("ERROR #%d: %s\n", rc, zErr); in do_some_sql() 70 char *zErr; in main() local 76 db = sqlite_open("test.db", 0, &zErr); in main() 78 printf("Cannot initialize: %s\n", zErr); in main()
|
D | threadtest3.c | 407 char *zErr; member 437 sqlite3_free(p->zErr); in free_err() 438 p->zErr = 0; in free_err() 444 printf("Error: (%d) \"%s\" at line %d\n", p->rc, p->zErr, p->iLine); in print_err() 456 pErr->zErr = (char *)sqlite3_malloc(512); in system_error() 457 strerror_r(iSys, pErr->zErr, 512); in system_error() 458 pErr->zErr[511] = '\0'; in system_error() 467 pErr->zErr = sqlite3_mprintf( in sqlite_error() 475 char *zErr in test_error_x() argument 479 pErr->zErr = zErr; in test_error_x() [all …]
|
/external/chromium_org/third_party/sqlite/src/src/ |
D | vdbeblob.c | 55 char *zErr = 0; /* Error message */ in blobSeekToRow() local 69 zErr = sqlite3MPrintf(p->db, "cannot open value of type %s", in blobSeekToRow() 91 zErr = sqlite3MPrintf(p->db, "no such rowid: %lld", iRow); in blobSeekToRow() 94 zErr = sqlite3MPrintf(p->db, "%s", sqlite3_errmsg(p->db)); in blobSeekToRow() 98 assert( rc!=SQLITE_OK || zErr==0 ); in blobSeekToRow() 101 *pzErr = zErr; in blobSeekToRow() 154 char *zErr = 0; in sqlite3_blob_open() local 172 sqlite3DbFree(db, zErr); in sqlite3_blob_open() 173 zErr = 0; in sqlite3_blob_open() 189 sqlite3DbFree(db, zErr); in sqlite3_blob_open() [all …]
|
D | test7.c | 65 char *zErr; /* operation error */ member 90 p->zErr = strdup(sqlite3_errmsg(p->db)); in client_main() 98 if( p->zErr && p->zErr!=p->zStaticErr ){ in client_main() 99 sqlite3_free(p->zErr); in client_main() 100 p->zErr = 0; in client_main() 114 if( p->zErr && p->zErr!=p->zStaticErr ){ in client_main() 115 sqlite3_free(p->zErr); in client_main() 116 p->zErr = 0; in client_main() 464 Tcl_AppendResult(interp, threadset[i].zErr, 0); in tcl_client_error() 473 p->zErr = p->zStaticErr = "no database is open"; in do_compile() [all …]
|
D | test4.c | 42 char *zErr; /* operation error */ member 68 p->zErr = strdup(sqlite3_errmsg(p->db)); in thread_main() 76 if( p->zErr && p->zErr!=p->zStaticErr ){ in thread_main() 77 sqlite3_free(p->zErr); in thread_main() 78 p->zErr = 0; in thread_main() 92 if( p->zErr && p->zErr!=p->zStaticErr ){ in thread_main() 93 sqlite3_free(p->zErr); in thread_main() 94 p->zErr = 0; in thread_main() 433 Tcl_AppendResult(interp, threadset[i].zErr, 0); in tcl_thread_error() 442 p->zErr = p->zStaticErr = "no database is open"; in do_compile() [all …]
|
D | test3.c | 461 char zErr[200]; in btree_varint_test() local 464 sprintf(zErr, "putVarint returned %d - should be between 1 and 9", n1); in btree_varint_test() 465 Tcl_AppendResult(interp, zErr, 0); in btree_varint_test() 470 sprintf(zErr, "putVarint returned %d and getVarint returned %d", n1, n2); in btree_varint_test() 471 Tcl_AppendResult(interp, zErr, 0); in btree_varint_test() 475 sprintf(zErr, "Wrote 0x%016llx and got back 0x%016llx", in, out); in btree_varint_test() 476 Tcl_AppendResult(interp, zErr, 0); in btree_varint_test() 484 sprintf(zErr, "putVarint returned %d and GetVarint32 returned %d", in btree_varint_test() 486 Tcl_AppendResult(interp, zErr, 0); in btree_varint_test() 490 sprintf(zErr, "Wrote 0x%016llx and got back 0x%016llx from GetVarint32", in btree_varint_test() [all …]
|
D | attach.c | 245 char zErr[128]; in detachFunc() local 257 sqlite3_snprintf(sizeof(zErr),zErr, "no such database: %s", zName); in detachFunc() 261 sqlite3_snprintf(sizeof(zErr),zErr, "cannot detach database %s", zName); in detachFunc() 265 sqlite3_snprintf(sizeof(zErr), zErr, in detachFunc() 270 sqlite3_snprintf(sizeof(zErr),zErr, "database %s is locked", zName); in detachFunc() 281 sqlite3_result_error(context, zErr, -1); in detachFunc()
|
D | test_loadext.c | 117 char *zErr; in testbrokenext_init() local 119 zErr = sqlite3_mprintf("broken!"); in testbrokenext_init() 120 *pzErrMsg = zErr; in testbrokenext_init()
|
D | test_autoext.c | 78 char *zErr; in broken_init() local 80 zErr = sqlite3_mprintf("broken autoext!"); in broken_init() 81 *pzErrMsg = zErr; in broken_init()
|
D | vtab.c | 441 char *zErr = 0; in vtabCallConstructor() local 461 rc = xConstruct(db, pMod->pAux, nArg, azArg, &pVTable->pVtab, &zErr); in vtabCallConstructor() 465 if( zErr==0 ){ in vtabCallConstructor() 468 *pzErr = sqlite3MPrintf(db, "%s", zErr); in vtabCallConstructor() 469 sqlite3_free(zErr); in vtabCallConstructor() 556 char *zErr = 0; in sqlite3VtabCallConnect() local 557 rc = vtabCallConstructor(db, pTab, pMod, pMod->pModule->xConnect, &zErr); in sqlite3VtabCallConnect() 559 sqlite3ErrorMsg(pParse, "%s", zErr); in sqlite3VtabCallConnect() 561 sqlite3DbFree(db, zErr); in sqlite3VtabCallConnect() 642 char *zErr = 0; in sqlite3_declare_vtab() local [all …]
|
D | test1.c | 314 char *zErr = 0; in test_exec_printf() local 325 rc = sqlite3_exec(db, zSql, exec_printf_cb, &str, &zErr); in test_exec_printf() 329 Tcl_AppendElement(interp, rc==SQLITE_OK ? Tcl_DStringValue(&str) : zErr); in test_exec_printf() 331 if( zErr ) sqlite3_free(zErr); in test_exec_printf() 352 char *zErr = 0; in test_exec_hex() local 373 rc = sqlite3_exec(db, zSql, exec_printf_cb, &str, &zErr); in test_exec_hex() 376 Tcl_AppendElement(interp, rc==SQLITE_OK ? Tcl_DStringValue(&str) : zErr); in test_exec_hex() 378 if( zErr ) sqlite3_free(zErr); in test_exec_hex() 436 char *zErr = 0; in test_exec() local 457 rc = sqlite3_exec(db, zSql, exec_printf_cb, &str, &zErr); in test_exec() [all …]
|
D | test_func.c | 310 char *zErr; in test_eval() local 312 zErr = sqlite3_mprintf("sqlite3_prepare_v2() error: %s",sqlite3_errmsg(db)); in test_eval() 313 sqlite3_result_text(pCtx, zErr, -1, sqlite3_free); in test_eval()
|
D | test_malloc.c | 639 char *zErr = 0; in test_memdebug_fail() local 643 zErr = "option requires an argument: "; in test_memdebug_fail() 651 zErr = "option requires an argument: "; in test_memdebug_fail() 656 zErr = "unknown option: "; in test_memdebug_fail() 659 if( zErr ){ in test_memdebug_fail() 660 Tcl_AppendResult(interp, zErr, zOption, 0); in test_memdebug_fail()
|
D | test8.c | 94 const char *zErr; in simulateVtabError() local 98 zErr = Tcl_GetVar(p->interp, zVarname, TCL_GLOBAL_ONLY); in simulateVtabError() 99 if( zErr ){ in simulateVtabError() 100 p->base.zErrMsg = sqlite3_mprintf("echo-vtab-error: %s", zErr); in simulateVtabError() 102 return (zErr!=0); in simulateVtabError()
|
D | vdbeapi.c | 494 const char *zErr = (const char *)sqlite3_value_text(db->pErr); in sqlite3_step() local 497 v->zErrMsg = sqlite3DbStrDup(db, zErr); in sqlite3_step() 547 char *zErr; in sqlite3InvalidFunction() local 549 zErr = sqlite3_mprintf( in sqlite3InvalidFunction() 551 sqlite3_result_error(context, zErr, -1); in sqlite3InvalidFunction() 552 sqlite3_free(zErr); in sqlite3InvalidFunction()
|
D | resolve.c | 351 const char *zErr; in lookupName() local 352 zErr = cnt==0 ? "no such column" : "ambiguous column name"; in lookupName() 354 sqlite3ErrorMsg(pParse, "%s: %s.%s.%s", zErr, zDb, zTab, zCol); in lookupName() 356 sqlite3ErrorMsg(pParse, "%s: %s.%s", zErr, zTab, zCol); in lookupName() 358 sqlite3ErrorMsg(pParse, "%s: %s", zErr, zCol); in lookupName()
|
D | insert.c | 1368 char *zErr; in sqlite3GenerateConstraintChecks() local 1381 zErr = sqlite3StrAccumFinish(&errMsg); in sqlite3GenerateConstraintChecks() 1382 sqlite3HaltConstraint(pParse, onError, zErr, 0); in sqlite3GenerateConstraintChecks() 1383 sqlite3DbFree(errMsg.db, zErr); in sqlite3GenerateConstraintChecks()
|
D | os_unix.c | 982 char *zErr; /* Message from strerror() or equivalent */ in unixLogErrorAtLine() local 992 zErr = aErr; in unixLogErrorAtLine() 1007 zErr = in unixLogErrorAtLine() 1013 zErr = ""; in unixLogErrorAtLine() 1016 zErr = strerror(iErrno); in unixLogErrorAtLine() 1023 iLine, iErrno, zFunc, zPath, zErr in unixLogErrorAtLine() 5300 const char *zErr; in unixDlError() local 5303 zErr = dlerror(); in unixDlError() 5304 if( zErr ){ in unixDlError() 5305 sqlite3_snprintf(nBuf, zBufOut, "%s", zErr); in unixDlError()
|
D | test_vfstrace.c | 673 static int vfstraceGetLastError(sqlite3_vfs *pVfs, int iErr, char *zErr){ in vfstraceGetLastError() argument 676 return pRoot->xGetLastError(pRoot, iErr, zErr); in vfstraceGetLastError()
|
/external/chromium_org/third_party/sqlite/src/ext/fts2/ |
D | fts2_tokenizer.c | 93 char *zErr = sqlite3_mprintf("unknown tokenizer: %s", zName); in scalarFunc() local 94 sqlite3_result_error(context, zErr, -1); in scalarFunc() 95 sqlite3_free(zErr); in scalarFunc() 144 const char *zErr = 0; in testFunc() local 176 char *zErr = sqlite3_mprintf("unknown tokenizer: %s", zName); in testFunc() local 177 sqlite3_result_error(context, zErr, -1); in testFunc() 178 sqlite3_free(zErr); in testFunc() 186 zErr = "error in xCreate()"; in testFunc() 191 zErr = "error in xOpen()"; in testFunc() 205 zErr = "error in xClose()"; in testFunc() [all …]
|
/external/chromium_org/third_party/sqlite/src/ext/fts3/ |
D | fts3_tokenizer.c | 90 char *zErr = sqlite3_mprintf("unknown tokenizer: %s", zName); in scalarFunc() local 91 sqlite3_result_error(context, zErr, -1); in scalarFunc() 92 sqlite3_free(zErr); in scalarFunc() 250 const char *zErr = 0; in testFunc() local 282 char *zErr = sqlite3_mprintf("unknown tokenizer: %s", zName); in testFunc() local 283 sqlite3_result_error(context, zErr, -1); in testFunc() 284 sqlite3_free(zErr); in testFunc() 292 zErr = "error in xCreate()"; in testFunc() 297 zErr = "error in xOpen()"; in testFunc() 311 zErr = "error in xClose()"; in testFunc() [all …]
|
D | fts3_snippet.c | 1596 char *zErr = 0; in sqlite3Fts3Matchinfo() local 1597 if( fts3MatchinfoCheck(pTab, zArg[i], &zErr) ){ in sqlite3Fts3Matchinfo() 1598 sqlite3_result_error(pContext, zErr, -1); in sqlite3Fts3Matchinfo() 1599 sqlite3_free(zErr); in sqlite3Fts3Matchinfo()
|
/external/chromium_org/third_party/sqlite/src/tool/ |
D | rollback-test.c | 61 char *zErr = 0; in runSql() local 64 rc = sqlite3_exec(db, zSql, execCallback, 0, &zErr); in runSql() 65 if( zErr ){ in runSql() 66 fprintf(stderr, "SQL error: %s\n", zErr); in runSql()
|
/external/sqlite/dist/ |
D | shell.c | 1561 char *zErr = 0; in run_schema_dump_query() local 1562 rc = sqlite3_exec(p->db, zQuery, dump_callback, p, &zErr); in run_schema_dump_query() 1567 if( zErr ){ in run_schema_dump_query() 1568 fprintf(p->out, "/****** %s ******/\n", zErr); in run_schema_dump_query() 1569 sqlite3_free(zErr); in run_schema_dump_query() 1570 zErr = 0; in run_schema_dump_query() 1575 rc = sqlite3_exec(p->db, zQ2, dump_callback, p, &zErr); in run_schema_dump_query() 1577 fprintf(p->out, "/****** ERROR: %s ******/\n", zErr); in run_schema_dump_query() 1581 sqlite3_free(zErr); in run_schema_dump_query()
|
/external/sqlite/dist/orig/ |
D | shell.c | 1556 char *zErr = 0; in run_schema_dump_query() local 1557 rc = sqlite3_exec(p->db, zQuery, dump_callback, p, &zErr); in run_schema_dump_query() 1562 if( zErr ){ in run_schema_dump_query() 1563 fprintf(p->out, "/****** %s ******/\n", zErr); in run_schema_dump_query() 1564 sqlite3_free(zErr); in run_schema_dump_query() 1565 zErr = 0; in run_schema_dump_query() 1570 rc = sqlite3_exec(p->db, zQ2, dump_callback, p, &zErr); in run_schema_dump_query() 1572 fprintf(p->out, "/****** ERROR: %s ******/\n", zErr); in run_schema_dump_query() 1576 sqlite3_free(zErr); in run_schema_dump_query()
|