Fix a segfault in swarmvtab that could occur if there was an error in the SQL

statement passed to the constructor. Add other test cases.

FossilOrigin-Name: 6ce8b7ca62fcf97875395fc1a989179309e0abb48d4465658ef0d871434ea057
This commit is contained in:
dan
2017-08-05 16:15:33 +00:00
parent eabb67fb61
commit 226744d11b
5 changed files with 130 additions and 10 deletions
+1 -1
View File
@@ -721,7 +721,7 @@ static int unionConnect(
pStmt = 0;
/* Capture the not-found callback UDF name */
if( argc>=5 ){
if( rc==SQLITE_OK && argc>=5 ){
pTab->zNotFoundCallback = unionStrdup(&rc, argv[4]);
unionDequote(pTab->zNotFoundCallback);
}