Home
last modified time | relevance | path

Searched refs:zErrMsg (Results 1 – 18 of 18) sorted by relevance

/illumos-gate/usr/src/lib/libsqlite/src/
H A Dvacuum.c92 char *zErrMsg = 0; in execsql() local
97 if( zErrMsg ){ in execsql()
99 sqlite_freemem(zErrMsg); in execsql()
151 char *zErrMsg = 0; in vacuumCallback1() local
157 if( zErrMsg ){ in vacuumCallback1()
159 sqlite_freemem(zErrMsg); in vacuumCallback1()
275 zTemp, " - ", zErrMsg, (char*)0); in sqliteRunVacuum()
300 vacuumCallback1, &sVac, &zErrMsg); in sqliteRunVacuum()
309 if( rc && zErrMsg!=0 ){ in sqliteRunVacuum()
311 zErrMsg, (char*)0); in sqliteRunVacuum()
[all …]
H A Dtable.c29 char *zErrMsg; member
87 sqliteSetString(&p->zErrMsg, in sqlite_get_table_cb()
139 res.zErrMsg = 0; in sqlite_get_table()
157 if( res.zErrMsg ){ in sqlite_get_table()
160 *pzErrMsg = res.zErrMsg; in sqlite_get_table()
163 sqliteFree(res.zErrMsg); in sqlite_get_table()
168 sqliteFree(res.zErrMsg); in sqlite_get_table()
H A Dtclsqlite.c772 char *zErrMsg; in DbObjCmd() local
799 zErrMsg = 0; in DbObjCmd()
814 if( zErrMsg ) free(zErrMsg); in DbObjCmd()
816 }else if( zErrMsg ){ in DbObjCmd()
818 free(zErrMsg); in DbObjCmd()
892 char *zErrMsg = 0; in DbObjCmd() local
901 }else if( zErrMsg ){ in DbObjCmd()
903 free(zErrMsg); in DbObjCmd()
1028 char *zErrMsg; in DbMain() local
1080 zErrMsg = 0; in DbMain()
[all …]
H A Dtokenize.c464 if( pParse->rc!=SQLITE_OK && pParse->rc!=SQLITE_DONE && pParse->zErrMsg==0 ){ in sqliteRunParser()
465 sqliteSetString(&pParse->zErrMsg, sqlite_error_string(pParse->rc), in sqliteRunParser()
468 if( pParse->zErrMsg ){ in sqliteRunParser()
470 *pzErrMsg = pParse->zErrMsg; in sqliteRunParser()
472 sqliteFree(pParse->zErrMsg); in sqliteRunParser()
474 pParse->zErrMsg = 0; in sqliteRunParser()
H A Dinsert.c804 char zErrMsg[200]; in sqliteGenerateConstraintChecks() local
805 strcpy(zErrMsg, pIdx->nColumn>1 ? "columns " : "column "); in sqliteGenerateConstraintChecks()
806 n1 = strlen(zErrMsg); in sqliteGenerateConstraintChecks()
807 for(j=0; j<pIdx->nColumn && n1<sizeof(zErrMsg)-30; j++){ in sqliteGenerateConstraintChecks()
811 strcpy(&zErrMsg[n1], ", "); in sqliteGenerateConstraintChecks()
814 if( n1+n2>sizeof(zErrMsg)-30 ){ in sqliteGenerateConstraintChecks()
815 strcpy(&zErrMsg[n1], "..."); in sqliteGenerateConstraintChecks()
819 strcpy(&zErrMsg[n1], zCol); in sqliteGenerateConstraintChecks()
823 strcpy(&zErrMsg[n1], in sqliteGenerateConstraintChecks()
825 sqliteVdbeOp3(v, OP_Halt, SQLITE_CONSTRAINT, onError, zErrMsg, 0); in sqliteGenerateConstraintChecks()
H A Dtest1.c847 char *zErrMsg = 0; in test_finalize() local
854 rc = sqlite_finalize(vm, &zErrMsg); in test_finalize()
858 Tcl_AppendResult(interp, zBuf, zErrMsg, 0); in test_finalize()
859 sqlite_freemem(zErrMsg); in test_finalize()
878 char *zErrMsg = 0; in test_reset() local
885 rc = sqlite_reset(vm, &zErrMsg); in test_reset()
889 Tcl_AppendResult(interp, zBuf, zErrMsg, 0); in test_reset()
890 sqlite_freemem(zErrMsg); in test_reset()
H A Dvdbeaux.c562 sqliteSetString(&p->zErrMsg, sqlite_error_string(p->rc), (char*)0); in sqliteVdbeList()
823 sqliteFree(p->zErrMsg); in Cleanup()
824 p->zErrMsg = 0; in Cleanup()
842 if( p->zErrMsg ){ in sqliteVdbeReset()
844 *pzErrMsg = p->zErrMsg; in sqliteVdbeReset()
846 sqliteFree(p->zErrMsg); in sqliteVdbeReset()
848 p->zErrMsg = 0; in sqliteVdbeReset()
H A Dvdbe.c626 sqliteSetString(&p->zErrMsg, "return address stack overflow", (char*)0); in sqliteVdbeExec()
676 sqliteSetString(&p->zErrMsg, pOp->p3, (char*)0); in sqliteVdbeExec()
1128 sqliteSetString(&p->zErrMsg, in sqliteVdbeExec()
2194 sqliteSetString(&p->zErrMsg, sqlite_error_string(rc), (char*)0); in sqliteVdbeExec()
3464 sqliteSetString(&p->zErrMsg, pOp->p3, (char*)0); in sqliteVdbeExec()
4731 rc = sqliteRunVacuum(&p->zErrMsg, db); in sqliteVdbeExec()
4770 sqliteSetString(&p->zErrMsg, "unknown opcode ", zBuf, (char*)0); in sqliteVdbeExec()
4893 sqliteSetString(&p->zErrMsg, "out of memory", (char*)0); in sqliteVdbeExec()
4907 if( p->zErrMsg==0 ){ in sqliteVdbeExec()
4909 sqliteSetString(&p->zErrMsg, sqlite_error_string(rc), (char*)0); in sqliteVdbeExec()
[all …]
H A DvdbeInt.h279 char *zErrMsg; /* Error message written here */ member
H A Dutil.c421 sqliteFree(pParse->zErrMsg); in sqliteErrorMsg()
423 pParse->zErrMsg = sqliteVMPrintf(zFormat, ap); in sqliteErrorMsg()
H A Dbtree.c3173 char *zErrMsg; /* An error message. NULL of no errors seen. */ member
3180 if( pCheck->zErrMsg ){ in checkAppendMsg()
3181 char *zOld = pCheck->zErrMsg; in checkAppendMsg()
3182 pCheck->zErrMsg = 0; in checkAppendMsg()
3183 sqliteSetString(&pCheck->zErrMsg, zOld, "\n", zMsg1, zMsg2, (char*)0); in checkAppendMsg()
3186 sqliteSetString(&pCheck->zErrMsg, zMsg1, zMsg2, (char*)0); in checkAppendMsg()
3450 sCheck.zErrMsg = 0; in fileBtreeIntegrityCheck()
3489 return sCheck.zErrMsg; in fileBtreeIntegrityCheck()
H A Dattach.c114 rc = sqliteInit(pParse->db, &pParse->zErrMsg); in sqliteAttach()
H A DsqliteInt.h912 char *zErrMsg; /* An error message */ member
H A Dparse.y24 if( pParse->zErrMsg==0 ){
H A Dbuild.c42 int rc = sqliteInit(db, &pParse->zErrMsg); in sqliteBeginParse()
H A Dselect.c122 sqliteSetNString(&pParse->zErrMsg, "unknown or unsupported join type: ", 0, in sqliteJoinType()
/illumos-gate/usr/src/lib/libsqlite/test/
H A Dthreadtest1.c105 char *zErrMsg = 0; in db_query() local
114 rc = sqlite_exec(db, zSql, db_query_callback, &sResult, &zErrMsg); in db_query()
116 if( zErrMsg ) free(zErrMsg); in db_query()
120 if( zErrMsg ){ in db_query()
122 free(zErrMsg); in db_query()
140 char *zErrMsg = 0; in db_execute() local
146 rc = sqlite_exec(db, zSql, 0, 0, &zErrMsg); in db_execute()
148 if( zErrMsg ) free(zErrMsg); in db_execute()
149 rc = sqlite_exec(db, zSql, 0, 0, &zErrMsg); in db_execute()
152 if( zErrMsg ){ in db_execute()
[all …]
/illumos-gate/usr/src/cmd/sqlite/
H A Dshell.c519 char *zErrMsg = 0; in open_db() local
527 if( zErrMsg ){ in open_db()
577 char *zErrMsg = 0; in do_meta_command() local
586 if( zErrMsg ){ in do_meta_command()
614 if( zErrMsg ){ in do_meta_command()
720 if( zErrMsg ){ in do_meta_command()
867 if( zErrMsg ){ in do_meta_command()
897 char *zErrMsg; in do_meta_command() local
920 if( zErrMsg ){ in do_meta_command()
1026 char *zErrMsg; in process_input() local
[all …]