diff options
author | drh <drh@noemail.net> | 2003-03-27 13:50:00 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2003-03-27 13:50:00 +0000 |
commit | 812d7a21dd30c9ed9aebdb063a3efedede092d63 (patch) | |
tree | 40176d47b4cc2c517ba9dd0d0cef845861ae3cad /src/insert.c | |
parent | 0951d703f2dcd3f096f1cdec7a2c3c304956f5fe (diff) | |
download | sqlite-812d7a21dd30c9ed9aebdb063a3efedede092d63.tar.gz sqlite-812d7a21dd30c9ed9aebdb063a3efedede092d63.zip |
Regression tests now work - except for some changes in error message
text. The library is now safe to use for experimental work. (CVS 885)
FossilOrigin-Name: 8a593e9c2d57e758739a7ef54fa40ca6a0071a9a
Diffstat (limited to 'src/insert.c')
-rw-r--r-- | src/insert.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/insert.c b/src/insert.c index 14f7824b0..f9f72f8c4 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.75 2003/03/27 12:51:25 drh Exp $ +** $Id: insert.c,v 1.76 2003/03/27 13:50:00 drh Exp $ */ #include "sqliteInt.h" @@ -93,7 +93,6 @@ void sqliteInsert( ){ Table *pTab; /* The table to insert into */ char *zTab; /* Name of the table into which we are inserting */ - char *zDb; /* Name of the database holding zTab */ int i, j, idx; /* Loop counters */ Vdbe *v; /* Generate code into this virtual machine */ Index *pIdx; /* For looping over indices of the table */ @@ -121,8 +120,7 @@ void sqliteInsert( assert( pTabList->nSrc==1 ); zTab = pTabList->a[0].zName; if( zTab==0 ) goto insert_cleanup; - zDb = pTabList->a[0].zDatabase; - pTab = sqliteTableNameToTable(pParse, zTab, zDb); + pTab = sqliteSrcListLookup(pParse, pTabList); if( pTab==0 ){ goto insert_cleanup; } |