aboutsummaryrefslogtreecommitdiff
path: root/src/tokenize.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-04-28 18:46:43 +0000
committerdrh <drh@noemail.net>2008-04-28 18:46:43 +0000
commit4f3dd1502e052b7dd3f1581aec32f294710a84d9 (patch)
treee4eb1c0c94156658870aeb25f039f66cee405a34 /src/tokenize.c
parent952856ad3a297443dfd175655f1988e275296ff5 (diff)
downloadsqlite-4f3dd1502e052b7dd3f1581aec32f294710a84d9.tar.gz
sqlite-4f3dd1502e052b7dd3f1581aec32f294710a84d9.zip
Make sure that transactions are started on all virtual tables that
changes in a single statement, not just the first. Ticket #3083. Need to add test cases. (CVS 5063) FossilOrigin-Name: 133b7ee50ea6012739ebe0e334374c5d9b1fcc7f
Diffstat (limited to 'src/tokenize.c')
-rw-r--r--src/tokenize.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tokenize.c b/src/tokenize.c
index 6a2beb0bb..63cf78646 100644
--- a/src/tokenize.c
+++ b/src/tokenize.c
@@ -15,7 +15,7 @@
** individual tokens and sends those tokens one-by-one over to the
** parser for analysis.
**
-** $Id: tokenize.c,v 1.141 2008/04/05 18:41:43 drh Exp $
+** $Id: tokenize.c,v 1.142 2008/04/28 18:46:43 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -483,6 +483,9 @@ abort_parse:
pParse->nTableLock = 0;
}
#endif
+#ifndef SQLITE_OMIT_VIRTUALTABLE
+ sqlite3_free(pParse->apVtabLock);
+#endif
if( !IN_DECLARE_VTAB ){
/* If the pParse->declareVtab flag is set, do not delete any table