Be careful to verify the schema cookie when running the xfer optimization
on INSERT statements. (CVS 4322)
FossilOrigin-Name: d8ef7024172fffee049cfda6707220af2577e9a1
diff --git a/src/insert.c b/src/insert.c
index a2a417f..4d03326 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 @@
#endif
iDbSrc = sqlite3SchemaToIndex(pParse->db, pSrc->pSchema);
v = sqlite3GetVdbe(pParse);
+ sqlite3CodeVerifySchema(pParse, iDbSrc);
iSrc = pParse->nTab++;
iDest = pParse->nTab++;
counterMem = autoIncBegin(pParse, iDbDest, pDest);