aboutsummaryrefslogtreecommitdiff
path: root/src/insert.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2007-08-29 13:45:58 +0000
committerdrh <drh@noemail.net>2007-08-29 13:45:58 +0000
commitf53e9b5ad5ea62453fdc87e04e37d7ab309bc4f6 (patch)
tree41f8378a7c7933f3fa1194ab13e00197b23e764e /src/insert.c
parenta1644fd86384de5f37fc42a7fb871a8c9a12dab5 (diff)
downloadsqlite-f53e9b5ad5ea62453fdc87e04e37d7ab309bc4f6.tar.gz
sqlite-f53e9b5ad5ea62453fdc87e04e37d7ab309bc4f6.zip
Be careful to verify the schema cookie when running the xfer optimization
on INSERT statements. (CVS 4322) FossilOrigin-Name: d8ef7024172fffee049cfda6707220af2577e9a1
Diffstat (limited to 'src/insert.c')
-rw-r--r--src/insert.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/insert.c b/src/insert.c
index a2a417f74..4d03326ee 100644
--- a/src/insert.c
+++ b/src/insert.c
@@ -12,7 +12,7 @@
** This file contains C code routines that are called by the parser
** to handle INSERT statements in SQLite.
**
-** $Id: insert.c,v 1.190 2007/08/16 12:24:02 drh Exp $
+** $Id: insert.c,v 1.191 2007/08/29 13:45:59 drh Exp $
*/
#include "sqliteInt.h"
@@ -1525,6 +1525,7 @@ static int xferOptimization(
#endif
iDbSrc = sqlite3SchemaToIndex(pParse->db, pSrc->pSchema);
v = sqlite3GetVdbe(pParse);
+ sqlite3CodeVerifySchema(pParse, iDbSrc);
iSrc = pParse->nTab++;
iDest = pParse->nTab++;
counterMem = autoIncBegin(pParse, iDbDest, pDest);