1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-18 10:21:03 +03:00

Fix an incorrect assert() in the sqlite3_trace() logic.

FossilOrigin-Name: eabde33997b5b2ffc0067930305d6fed5951a234
This commit is contained in:
drh
2015-04-18 00:22:17 +00:00
parent 1586699cfc
commit c982844097
3 changed files with 11 additions and 9 deletions

View File

@@ -111,10 +111,12 @@ char *sqlite3VdbeExpandSql(
idx = nextIndex;
}
}else{
assert( zRawSql[0]==':' || zRawSql[0]=='$' || zRawSql[0]=='@' );
assert( zRawSql[0]==':' || zRawSql[0]=='$' ||
zRawSql[0]=='@' || zRawSql[0]=='#' );
testcase( zRawSql[0]==':' );
testcase( zRawSql[0]=='$' );
testcase( zRawSql[0]=='@' );
testcase( zRawSql[0]=='#' );
idx = sqlite3VdbeParameterIndex(p, zRawSql, nToken);
assert( idx>0 );
}