1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

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
This commit is contained in:
dan
2024-05-16 16:22:51 +00:00
parent c72953a4bc
commit fa0763eb34
5 changed files with 41 additions and 15 deletions

View File

@ -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 ){