aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2008-08-04 04:39:48 +0000
committerdanielk1977 <danielk1977@noemail.net>2008-08-04 04:39:48 +0000
commitdf206b0b6bd5ef4d6ce91aa9a99d694cbf6c109a (patch)
tree189025dd3be51363de60a8608a259f6cca06f090 /src
parent94bdf89440c7fa9d0696da057283ae159b89d63d (diff)
downloadsqlite-df206b0b6bd5ef4d6ce91aa9a99d694cbf6c109a.tar.gz
sqlite-df206b0b6bd5ef4d6ce91aa9a99d694cbf6c109a.zip
Add an assert() statement that will alert us if the potential problem identified by #3243 ever becomes a reality. (CVS 5532)
FossilOrigin-Name: 34208f0ba420ca6bef16991eba200d5ed68d5430
Diffstat (limited to 'src')
-rw-r--r--src/build.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/build.c b/src/build.c
index 715e219bf..2e0a6115d 100644
--- a/src/build.c
+++ b/src/build.c
@@ -22,7 +22,7 @@
** COMMIT
** ROLLBACK
**
-** $Id: build.c,v 1.492 2008/08/02 03:50:39 drh Exp $
+** $Id: build.c,v 1.493 2008/08/04 04:39:49 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -1524,6 +1524,7 @@ void sqlite3EndTable(
SelectDest dest;
Table *pSelTab;
+ assert(pParse->nTab==0);
sqlite3VdbeAddOp3(v, OP_OpenWrite, 1, pParse->regRoot, iDb);
sqlite3VdbeChangeP5(v, 1);
pParse->nTab = 2;