Home
last modified time | relevance | path

Searched refs:zErr (Results 1 – 5 of 5) sorted by relevance

/illumos-gate/usr/src/lib/libsqlite/test/
H A Dcrashtest1.c28 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()
/illumos-gate/usr/src/lib/libsqlite/src/
H A Dtest4.c44 char *zErr; /* operation error */ member
68 p->db = sqlite_open(p->zFilename, 0, &p->zErr); in thread_main()
73 if( p->zErr && p->zErr!=p->zStaticErr ){ in thread_main()
74 sqlite_freemem(p->zErr); in thread_main()
75 p->zErr = 0; in thread_main()
89 if( p->zErr && p->zErr!=p->zStaticErr ){ in thread_main()
90 sqlite_freemem(p->zErr); in thread_main()
91 p->zErr = 0; in thread_main()
430 Tcl_AppendResult(interp, threadset[i].zErr, 0); in tcl_thread_error()
439 p->zErr = p->zStaticErr = "no database is open"; in do_compile()
[all …]
H A Dtest1.c96 char *zErr = 0; in sqlite_test_open() local
103 db = sqlite_open(argv[1], 0666, &zErr); in sqlite_test_open()
105 Tcl_AppendResult(interp, zErr, 0); in sqlite_test_open()
106 free(zErr); in sqlite_test_open()
148 char *zErr = 0; in test_exec_printf() local
157 rc = sqlite_exec_printf(db, argv[2], exec_printf_cb, &str, &zErr, argv[3]); in test_exec_printf()
160 Tcl_AppendElement(interp, rc==SQLITE_OK ? Tcl_DStringValue(&str) : zErr); in test_exec_printf()
162 if( zErr ) free(zErr); in test_exec_printf()
206 char *zErr = 0; in test_get_table_printf() local
219 &zErr, argv[3]); in test_get_table_printf()
[all …]
H A Dmain.c81 char *zErr; in sqliteInitCallback() local
86 if( sqlite_exec(db, argv[3], 0, 0, &zErr) ){ in sqliteInitCallback()
87 corruptSchema(pData, zErr); in sqliteInitCallback()
88 sqlite_freemem(zErr); in sqliteInitCallback()
144 char *zErr = 0; in upgrade_3_callback() local
158 0, 0, &zErr, argv[0], argv[0], argv[0]); in upgrade_3_callback()
159 if( zErr ){ in upgrade_3_callback()
161 *pData->pzErrMsg = zErr; in upgrade_3_callback()
417 char *zErr = 0; in sqliteInit() local
423 initData.pzErrMsg = &zErr; in sqliteInit()
[all …]
H A Dexpr.c571 char *zErr; in lookupName() local
572 zErr = cnt==0 ? "no such column: %s" : "ambiguous column name: %s"; in lookupName()
580 sqliteErrorMsg(pParse, zErr, z); in lookupName()