diff options
author | dan <Dan Kennedy> | 2024-05-16 16:22:51 +0000 |
---|---|---|
committer | dan <Dan Kennedy> | 2024-05-16 16:22:51 +0000 |
commit | fa0763eb3437cf0c16342e8e38a03014a557eb91 (patch) | |
tree | fd02ca6f752af9344b89fb1a366d96827d8602f5 /src | |
parent | c72953a4bc68c5716c224e714557d59fe3d91df4 (diff) | |
download | sqlite-fa0763eb3437cf0c16342e8e38a03014a557eb91.tar.gz sqlite-fa0763eb3437cf0c16342e8e38a03014a557eb91.zip |
Add extra tests for the error messages generated by sqlite3_declare_vtab() when passed something other than a well-formed CREATE TABLE statement.
FossilOrigin-Name: 5fa0c2a026f0467af3a76ea80cee8168b7a49553c350f642d1dff02ff9e7aeed
Diffstat (limited to 'src')
-rw-r--r-- | src/test_bestindex.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test_bestindex.c b/src/test_bestindex.c index 6b6b41395..0e1e86a81 100644 --- a/src/test_bestindex.c +++ b/src/test_bestindex.c @@ -215,6 +215,9 @@ static int tclConnect( rc = SQLITE_ERROR; }else{ rc = sqlite3_declare_vtab(db, Tcl_GetStringResult(interp)); + if( rc!=SQLITE_OK ){ + *pzErr = sqlite3_mprintf("declare_vtab: %s", sqlite3_errmsg(db)); + } } if( rc!=SQLITE_OK ){ |