1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Take care not to try to generate code for the ATTACH and DETACH commands

if there were syntax errors during parsing.
Fix for ticket [2f1b168ab4d4844]

FossilOrigin-Name: b0ff183b8ffdbebece06cfea1c6781fc0e8e8547
This commit is contained in:
drh
2016-11-11 03:37:24 +00:00
parent 58282f68d8
commit 4360fcea6d
4 changed files with 14 additions and 9 deletions

View File

@@ -325,6 +325,7 @@ static void codeAttach(
sqlite3* db = pParse->db;
int regArgs;
if( pParse->nErr ) goto attach_end;
memset(&sName, 0, sizeof(NameContext));
sName.pParse = pParse;