diff options
author | drh <drh@noemail.net> | 2008-07-23 18:17:32 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-07-23 18:17:32 +0000 |
commit | 4dc754d96d02536e9c70e225006fd74f40760ce9 (patch) | |
tree | d700f06b5fb1995e474ef3305c10ab4aa6c7dca5 /src/test8.c | |
parent | b25f9d84cd583623a9bba8d398a4a31ccbff3c34 (diff) | |
download | sqlite-4dc754d96d02536e9c70e225006fd74f40760ce9.tar.gz sqlite-4dc754d96d02536e9c70e225006fd74f40760ce9.zip |
Read the sqlite3_vtab.zErrMsg after each call to a virtual table
method and transfer any error into the database connection.
Fix the fts2.test and fts3.test scripts to that they return
silently rather than failing the test sequence if the appropriate
FTS implementation is unavailable. (CVS 5463)
FossilOrigin-Name: e2c6771d44f1b4fee16ef90e91c3498be2a7d2b1
Diffstat (limited to 'src/test8.c')
-rw-r--r-- | src/test8.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test8.c b/src/test8.c index 9e4bcb2e5..c64e55d46 100644 --- a/src/test8.c +++ b/src/test8.c @@ -13,7 +13,7 @@ ** is not included in the SQLite library. It is used for automated ** testing of the SQLite library. ** -** $Id: test8.c,v 1.67 2008/07/07 14:50:14 drh Exp $ +** $Id: test8.c,v 1.68 2008/07/23 18:17:32 drh Exp $ */ #include "sqliteInt.h" #include "tcl.h" @@ -987,6 +987,9 @@ int echoUpdate( if( pRowid && rc==SQLITE_OK ){ *pRowid = sqlite3_last_insert_rowid(db); } + if( rc!=SQLITE_OK ){ + tab->zErrMsg = sqlite3_mprintf("echo-vtab-error: %s", sqlite3_errmsg(db)); + } return rc; } |