Home
last modified time | relevance | path

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

12

/external/chromium_org/third_party/sqlite/src/test/
Dthreadtest1.c105 char *zErrMsg = 0; in db_query() local
114 rc = sqlite3_exec(db, zSql, db_query_callback, &sResult, &zErrMsg); in db_query()
116 if( zErrMsg ) free(zErrMsg); in db_query()
117 rc = sqlite3_exec(db, zSql, db_query_callback, &sResult, &zErrMsg); in db_query()
120 if( zErrMsg ){ in db_query()
121 fprintf(stdout,"%s: query failed: %s - %s\n", zFile, zSql, zErrMsg); in db_query()
122 free(zErrMsg); in db_query()
140 char *zErrMsg = 0; in db_execute() local
147 rc = sqlite3_exec(db, zSql, 0, 0, &zErrMsg); in db_execute()
150 if( zErrMsg ){ in db_execute()
[all …]
/external/chromium_org/third_party/sqlite/src/src/
Dtable.c31 char *zErrMsg; /* Error message text, if an error occurs */ member
77 sqlite3_free(p->zErrMsg); in sqlite3_get_table_cb()
78 p->zErrMsg = sqlite3_mprintf( in sqlite3_get_table_cb()
133 res.zErrMsg = 0; in sqlite3_get_table()
150 if( res.zErrMsg ){ in sqlite3_get_table()
153 *pzErrMsg = sqlite3_mprintf("%s",res.zErrMsg); in sqlite3_get_table()
155 sqlite3_free(res.zErrMsg); in sqlite3_get_table()
160 sqlite3_free(res.zErrMsg); in sqlite3_get_table()
Dshell.c960 char *zErrMsg = sqlite3_malloc(nErrMsg); in save_err_msg() local
961 if( zErrMsg ){ in save_err_msg()
962 memcpy(zErrMsg, sqlite3_errmsg(db), nErrMsg); in save_err_msg()
964 return zErrMsg; in save_err_msg()
1530 char *zErrMsg = 0; in do_meta_command() local
1539 sqlite3_exec(p->db, "PRAGMA database_list; ", callback, &data, &zErrMsg); in do_meta_command()
1540 if( zErrMsg ){ in do_meta_command()
1541 fprintf(stderr,"Error: %s\n", zErrMsg); in do_meta_command()
1542 sqlite3_free(zErrMsg); in do_meta_command()
1548 char *zErrMsg = 0; in do_meta_command() local
[all …]
Dtokenize.c477 if( pParse->rc!=SQLITE_OK && pParse->rc!=SQLITE_DONE && pParse->zErrMsg==0 ){ in sqlite3RunParser()
478 sqlite3SetString(&pParse->zErrMsg, db, "%s", sqlite3ErrStr(pParse->rc)); in sqlite3RunParser()
481 if( pParse->zErrMsg ){ in sqlite3RunParser()
482 *pzErrMsg = pParse->zErrMsg; in sqlite3RunParser()
484 pParse->zErrMsg = 0; in sqlite3RunParser()
Dprepare.c429 rc = sqlite3Init(db, &pParse->zErrMsg); in sqlite3ReadSchema()
531 char *zErrMsg = 0; /* Error message */ in sqlite3Prepare() local
599 sqlite3RunParser(pParse, zSqlCopy, &zErrMsg); in sqlite3Prepare()
606 sqlite3RunParser(pParse, zSql, &zErrMsg); in sqlite3Prepare()
660 if( zErrMsg ){ in sqlite3Prepare()
661 sqlite3Error(db, rc, "%s", zErrMsg); in sqlite3Prepare()
662 sqlite3DbFree(db, zErrMsg); in sqlite3Prepare()
Dtest_devsym.c67 static void devsymDlError(sqlite3_vfs*, int nByte, char *zErrMsg);
332 static void devsymDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){ in devsymDlError() argument
333 sqlite3OsDlError(g.pVfs, nByte, zErrMsg); in devsymDlError()
Dtest_fuzzer.c815 sqlite3_free(pVTab->zErrMsg); in fuzzerUpdate()
816 pVTab->zErrMsg = sqlite3_mprintf("cannot delete from a %s virtual table", in fuzzerUpdate()
821 sqlite3_free(pVTab->zErrMsg); in fuzzerUpdate()
822 pVTab->zErrMsg = sqlite3_mprintf("cannot update a %s virtual table", in fuzzerUpdate()
836 sqlite3_free(pVTab->zErrMsg); in fuzzerUpdate()
837 pVTab->zErrMsg = sqlite3_mprintf("cost must be positive"); in fuzzerUpdate()
Dtest_demovfs.c565 static void demoDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){ in demoDlError() argument
566 sqlite3_snprintf(nByte, zErrMsg, "Loadable extensions are not supported"); in demoDlError()
567 zErrMsg[nByte-1] = '\0'; in demoDlError()
Dvdbe.c508 sqlite3DbFree(db, p->zErrMsg); in importVtabErrMsg()
509 p->zErrMsg = sqlite3DbStrDup(db, pVtab->zErrMsg); in importVtabErrMsg()
510 sqlite3_free(pVtab->zErrMsg); in importVtabErrMsg()
511 pVtab->zErrMsg = 0; in importVtabErrMsg()
854 sqlite3SetString(&p->zErrMsg, db, "%s", pOp->p4.z); in sqlite3VdbeExec()
1418 sqlite3SetString(&p->zErrMsg, db, "%s", sqlite3_value_text(&ctx.s)); in sqlite3VdbeExec()
2577 sqlite3SetString(&p->zErrMsg, db, "cannot open savepoint - " in sqlite3VdbeExec()
2617 sqlite3SetString(&p->zErrMsg, db, "no such savepoint: %s", zName); in sqlite3VdbeExec()
2626 sqlite3SetString(&p->zErrMsg, db, in sqlite3VdbeExec()
2721 sqlite3SetString(&p->zErrMsg, db, "cannot rollback transaction - " in sqlite3VdbeExec()
[all …]
Dvdbeblob.c188 if( pParse->zErrMsg ){ in sqlite3_blob_open()
190 zErr = pParse->zErrMsg; in sqlite3_blob_open()
191 pParse->zErrMsg = 0; in sqlite3_blob_open()
Dvdbeaux.c1188 sqlite3SetString(&p->zErrMsg, db, "%s", sqlite3ErrStr(p->rc)); in sqlite3VdbeList()
1630 sqlite3DbFree(db, p->zErrMsg); in Cleanup()
1631 p->zErrMsg = 0; in Cleanup()
1716 rc = sqlite3VtabSync(db, &p->zErrMsg); in vdbeCommit()
2042 sqlite3SetString(&p->zErrMsg, db, "foreign key constraint failed"); in sqlite3VdbeCheckFk()
2207 sqlite3DbFree(db, p->zErrMsg); in sqlite3VdbeHalt()
2208 p->zErrMsg = 0; in sqlite3VdbeHalt()
2301 if( p->zErrMsg ){ in sqlite3VdbeReset()
2303 sqlite3ValueSetStr(db->pErr,-1,p->zErrMsg,SQLITE_UTF8,SQLITE_TRANSIENT); in sqlite3VdbeReset()
2306 sqlite3DbFree(db, p->zErrMsg); in sqlite3VdbeReset()
[all …]
Dtrigger.c788 assert( pFrom->zErrMsg==0 || pFrom->nErr ); in transferParseError()
789 assert( pTo->zErrMsg==0 || pTo->nErr ); in transferParseError()
791 pTo->zErrMsg = pFrom->zErrMsg; in transferParseError()
794 sqlite3DbFree(pFrom->db, pFrom->zErrMsg); in transferParseError()
Dtest_vfstrace.c72 static void vfstraceDlError(sqlite3_vfs*, int nByte, char *zErrMsg);
607 static void vfstraceDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){ in vfstraceDlError() argument
611 pRoot->xDlError(pRoot, nByte, zErrMsg); in vfstraceDlError()
612 vfstrace_printf(pInfo, " -> \"%s\"", zErrMsg); in vfstraceDlError()
Dtest_journal.c158 static void jtDlError(sqlite3_vfs*, int nByte, char *zErrMsg);
778 static void jtDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){ in jtDlError() argument
779 g.pVfs->xDlError(g.pVfs, nByte, zErrMsg); in jtDlError()
Dtest_onefile.c168 static void fsDlError(sqlite3_vfs*, int nByte, char *zErrMsg);
768 static void fsDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){ in fsDlError() argument
770 pParent->xDlError(pParent, nByte, zErrMsg); in fsDlError()
Dmain.c2288 char *zErrMsg = 0; in sqlite3_table_column_metadata() local
2302 rc = sqlite3Init(db, &zErrMsg); in sqlite3_table_column_metadata()
2371 sqlite3DbFree(db, zErrMsg); in sqlite3_table_column_metadata()
2372 zErrMsg = sqlite3MPrintf(db, "no such table column: %s.%s", zTableName, in sqlite3_table_column_metadata()
2376 sqlite3Error(db, rc, (zErrMsg?"%s":0), zErrMsg); in sqlite3_table_column_metadata()
2377 sqlite3DbFree(db, zErrMsg); in sqlite3_table_column_metadata()
Dbackup.c101 sqlite3Error(pErrorDb, pParse->rc, "%s", pParse->zErrMsg); in findBtree()
104 sqlite3DbFree(pErrorDb, pParse->zErrMsg); in findBtree()
Dfunc.c1192 char *zErrMsg = 0; in loadExt() local
1199 if( zFile && sqlite3_load_extension(db, zFile, zProc, &zErrMsg) ){ in loadExt()
1200 sqlite3_result_error(context, zErrMsg, -1); in loadExt()
1201 sqlite3_free(zErrMsg); in loadExt()
DvdbeInt.h284 char *zErrMsg; /* Error message written here */ member
Dutil.c161 sqlite3DbFree(db, pParse->zErrMsg); in sqlite3ErrorMsg()
162 pParse->zErrMsg = zMsg; in sqlite3ErrorMsg()
Dtest6.c662 static void cfDlError(sqlite3_vfs *pCfVfs, int nByte, char *zErrMsg){ in cfDlError() argument
664 pVfs->xDlError(pVfs, nByte, zErrMsg); in cfDlError()
Dvdbeapi.c495 sqlite3DbFree(db, v->zErrMsg); in sqlite3_step()
497 v->zErrMsg = sqlite3DbStrDup(db, zErr); in sqlite3_step()
500 v->zErrMsg = 0; in sqlite3_step()
Dtest_osinst.c164 static void vfslogDlError(sqlite3_vfs*, int nByte, char *zErrMsg);
560 static void vfslogDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){ in vfslogDlError() argument
561 REALVFS(pVfs)->xDlError(REALVFS(pVfs), nByte, zErrMsg); in vfslogDlError()
/external/sqlite/dist/
Dshell.c1076 char *zErrMsg = sqlite3_malloc(nErrMsg); in save_err_msg() local
1077 if( zErrMsg ){ in save_err_msg()
1078 memcpy(zErrMsg, sqlite3_errmsg(db), nErrMsg); in save_err_msg()
1080 return zErrMsg; in save_err_msg()
2160 char *zErrMsg = 0; in tryToCloneSchema() local
2175 sqlite3_exec(newDb, (const char*)zSql, 0, 0, &zErrMsg); in tryToCloneSchema()
2176 if( zErrMsg ){ in tryToCloneSchema()
2177 fprintf(stderr, "Error: %s\nSQL: [%s]\n", zErrMsg, zSql); in tryToCloneSchema()
2178 sqlite3_free(zErrMsg); in tryToCloneSchema()
2179 zErrMsg = 0; in tryToCloneSchema()
[all …]
/external/sqlite/dist/orig/
Dshell.c1071 char *zErrMsg = sqlite3_malloc(nErrMsg); in save_err_msg() local
1072 if( zErrMsg ){ in save_err_msg()
1073 memcpy(zErrMsg, sqlite3_errmsg(db), nErrMsg); in save_err_msg()
1075 return zErrMsg; in save_err_msg()
2140 char *zErrMsg = 0; in tryToCloneSchema() local
2155 sqlite3_exec(newDb, (const char*)zSql, 0, 0, &zErrMsg); in tryToCloneSchema()
2156 if( zErrMsg ){ in tryToCloneSchema()
2157 fprintf(stderr, "Error: %s\nSQL: [%s]\n", zErrMsg, zSql); in tryToCloneSchema()
2158 sqlite3_free(zErrMsg); in tryToCloneSchema()
2159 zErrMsg = 0; in tryToCloneSchema()
[all …]

12