/titanic_44/usr/src/lib/libsqlite/src/ |
H A D | vacuum.c | 95 char *zErrMsg = 0; in execsql() local 99 rc = sqlite_exec(db, zSql, 0, 0, &zErrMsg); in execsql() 100 if( zErrMsg ){ in execsql() 101 sqliteSetString(pzErrMsg, zErrMsg, (char*)0); in execsql() 102 sqlite_freemem(zErrMsg); in execsql() 154 char *zErrMsg = 0; in vacuumCallback1() local 159 rc = sqlite_exec(p->dbOld, p->s1.z, vacuumCallback2, p, &zErrMsg); in vacuumCallback1() 160 if( zErrMsg ){ in vacuumCallback1() 161 sqliteSetString(p->pzErrMsg, zErrMsg, (char*)0); in vacuumCallback1() 162 sqlite_freemem(zErrMsg); in vacuumCallback1() [all …]
|
H A D | table.c | 32 char *zErrMsg; member 90 sqliteSetString(&p->zErrMsg, in sqlite_get_table_cb() 142 res.zErrMsg = 0; in sqlite_get_table() 160 if( res.zErrMsg ){ in sqlite_get_table() 163 *pzErrMsg = res.zErrMsg; in sqlite_get_table() 166 sqliteFree(res.zErrMsg); in sqlite_get_table() 171 sqliteFree(res.zErrMsg); in sqlite_get_table()
|
H A D | tclsqlite.c | 775 char *zErrMsg; in DbObjCmd() local 802 zErrMsg = 0; in DbObjCmd() 805 rc = sqlite_exec(pDb->db, zSql, DbEvalCallback, &cbData, &zErrMsg); in DbObjCmd() 812 rc = sqlite_exec(pDb->db, zSql, DbEvalCallback2, pList, &zErrMsg); in DbObjCmd() 817 if( zErrMsg ) free(zErrMsg); in DbObjCmd() 819 }else if( zErrMsg ){ in DbObjCmd() 820 Tcl_SetResult(interp, zErrMsg, TCL_VOLATILE); in DbObjCmd() 821 free(zErrMsg); in DbObjCmd() 895 char *zErrMsg = 0; in DbObjCmd() local 901 rc = sqlite_exec(pDb->db, zSql, DbEvalCallback3, interp, &zErrMsg); in DbObjCmd() [all …]
|
H A D | tokenize.c | 467 if( pParse->rc!=SQLITE_OK && pParse->rc!=SQLITE_DONE && pParse->zErrMsg==0 ){ in sqliteRunParser() 468 sqliteSetString(&pParse->zErrMsg, sqlite_error_string(pParse->rc), in sqliteRunParser() 471 if( pParse->zErrMsg ){ in sqliteRunParser() 473 *pzErrMsg = pParse->zErrMsg; in sqliteRunParser() 475 sqliteFree(pParse->zErrMsg); in sqliteRunParser() 477 pParse->zErrMsg = 0; in sqliteRunParser()
|
H A D | insert.c | 807 char zErrMsg[200]; in sqliteGenerateConstraintChecks() local 808 strcpy(zErrMsg, pIdx->nColumn>1 ? "columns " : "column "); in sqliteGenerateConstraintChecks() 809 n1 = strlen(zErrMsg); in sqliteGenerateConstraintChecks() 810 for(j=0; j<pIdx->nColumn && n1<sizeof(zErrMsg)-30; j++){ in sqliteGenerateConstraintChecks() 814 strcpy(&zErrMsg[n1], ", "); in sqliteGenerateConstraintChecks() 817 if( n1+n2>sizeof(zErrMsg)-30 ){ in sqliteGenerateConstraintChecks() 818 strcpy(&zErrMsg[n1], "..."); in sqliteGenerateConstraintChecks() 822 strcpy(&zErrMsg[n1], zCol); in sqliteGenerateConstraintChecks() 826 strcpy(&zErrMsg[n1], in sqliteGenerateConstraintChecks() 828 sqliteVdbeOp3(v, OP_Halt, SQLITE_CONSTRAINT, onError, zErrMsg, 0); in sqliteGenerateConstraintChecks()
|
H A D | test1.c | 850 char *zErrMsg = 0; in test_finalize() local 857 rc = sqlite_finalize(vm, &zErrMsg); in test_finalize() 861 Tcl_AppendResult(interp, zBuf, zErrMsg, 0); in test_finalize() 862 sqlite_freemem(zErrMsg); in test_finalize() 881 char *zErrMsg = 0; in test_reset() local 888 rc = sqlite_reset(vm, &zErrMsg); in test_reset() 892 Tcl_AppendResult(interp, zBuf, zErrMsg, 0); in test_reset() 893 sqlite_freemem(zErrMsg); in test_reset()
|
H A D | vdbeaux.c | 565 sqliteSetString(&p->zErrMsg, sqlite_error_string(p->rc), (char*)0); in sqliteVdbeList() 826 sqliteFree(p->zErrMsg); in Cleanup() 827 p->zErrMsg = 0; in Cleanup() 845 if( p->zErrMsg ){ in sqliteVdbeReset() 847 *pzErrMsg = p->zErrMsg; in sqliteVdbeReset() 849 sqliteFree(p->zErrMsg); in sqliteVdbeReset() 851 p->zErrMsg = 0; in sqliteVdbeReset()
|
H A D | vdbe.c | 628 sqliteSetString(&p->zErrMsg, "return address stack overflow", (char*)0); in sqliteVdbeExec() 645 sqliteSetString(&p->zErrMsg, "return address stack underflow", (char*)0); in sqliteVdbeExec() 678 sqliteSetString(&p->zErrMsg, pOp->p3, (char*)0); in sqliteVdbeExec() 1130 sqliteSetString(&p->zErrMsg, in sqliteVdbeExec() 2196 sqliteSetString(&p->zErrMsg, sqlite_error_string(rc), (char*)0); in sqliteVdbeExec() 2342 sqliteSetString(&p->zErrMsg, "database schema has changed", (char*)0); in sqliteVdbeExec() 2415 sqliteSetString(&p->zErrMsg, "root page number less than 2", (char*)0); in sqliteVdbeExec() 2436 sqliteSetString(&p->zErrMsg, sqlite_error_string(rc), (char*)0); in sqliteVdbeExec() 3466 sqliteSetString(&p->zErrMsg, pOp->p3, (char*)0); in sqliteVdbeExec() 4154 sqliteSetString(&p->zErrMsg,"unable to open file: ", pOp->p3, (char*)0); in sqliteVdbeExec() [all …]
|
H A D | vdbeInt.h | 282 char *zErrMsg; /* Error message written here */ member
|
H A D | util.c | 424 sqliteFree(pParse->zErrMsg); in sqliteErrorMsg() 426 pParse->zErrMsg = sqliteVMPrintf(zFormat, ap); in sqliteErrorMsg()
|
H A D | attach.c | 117 rc = sqliteInit(pParse->db, &pParse->zErrMsg); in sqliteAttach()
|
H A D | btree.c | 3175 char *zErrMsg; /* An error message. NULL of no errors seen. */ member 3182 if( pCheck->zErrMsg ){ in checkAppendMsg() 3183 char *zOld = pCheck->zErrMsg; in checkAppendMsg() 3184 pCheck->zErrMsg = 0; in checkAppendMsg() 3185 sqliteSetString(&pCheck->zErrMsg, zOld, "\n", zMsg1, zMsg2, (char*)0); in checkAppendMsg() 3188 sqliteSetString(&pCheck->zErrMsg, zMsg1, zMsg2, (char*)0); in checkAppendMsg() 3452 sCheck.zErrMsg = 0; in fileBtreeIntegrityCheck() 3491 return sCheck.zErrMsg; in fileBtreeIntegrityCheck()
|
H A D | sqliteInt.h | 915 char *zErrMsg; /* An error message */ member
|
H A D | parse.y | 24 if( pParse->zErrMsg==0 ){
|
H A D | build.c | 45 int rc = sqliteInit(db, &pParse->zErrMsg); in sqliteBeginParse()
|
H A D | select.c | 126 sqliteSetNString(&pParse->zErrMsg, "unknown or unsupported join type: ", 0, in sqliteJoinType()
|
/titanic_44/usr/src/lib/libsqlite/test/ |
H A D | threadtest1.c | 108 char *zErrMsg = 0; in db_query() local 117 rc = sqlite_exec(db, zSql, db_query_callback, &sResult, &zErrMsg); in db_query() 119 if( zErrMsg ) free(zErrMsg); in db_query() 120 rc = sqlite_exec(db, zSql, db_query_callback, &sResult, &zErrMsg); in db_query() 123 if( zErrMsg ){ in db_query() 124 fprintf(stdout,"%s: query failed: %s - %s\n", zFile, zSql, zErrMsg); in db_query() 125 free(zErrMsg); in db_query() 143 char *zErrMsg = 0; in db_execute() local 149 rc = sqlite_exec(db, zSql, 0, 0, &zErrMsg); in db_execute() 151 if( zErrMsg ) free(zErrMsg); in db_execute() [all …]
|
/titanic_44/usr/src/cmd/sqlite/ |
H A D | shell.c | 521 char *zErrMsg = 0; in open_db() local 524 db = p->db = sqlite_open_encrypted(p->zDbFilename, p->zKey, n, 0, &zErrMsg); in open_db() 526 db = p->db = sqlite_open(p->zDbFilename, 0, &zErrMsg); in open_db() 529 if( zErrMsg ){ in open_db() 531 p->zDbFilename, zErrMsg); in open_db() 579 char *zErrMsg = 0; in do_meta_command() local 587 sqlite_exec(p->db, "PRAGMA database_list; ", callback, &data, &zErrMsg); in do_meta_command() 588 if( zErrMsg ){ in do_meta_command() 589 fprintf(stderr,"Error: %s\n", zErrMsg); in do_meta_command() 590 sqlite_freemem(zErrMsg); in do_meta_command() [all …]
|