diff options
author | danielk1977 <danielk1977@noemail.net> | 2006-06-16 06:17:47 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2006-06-16 06:17:47 +0000 |
commit | 1f6eec547cf6eeaec9a081c5c39f2bf5b8d8d49d (patch) | |
tree | 9ed2ea97b21a7c8b437161caf89093906b135704 /src/insert.c | |
parent | dbf5a848c674360d19ff8c2d82808a49d44d339a (diff) | |
download | sqlite-1f6eec547cf6eeaec9a081c5c39f2bf5b8d8d49d.tar.gz sqlite-1f6eec547cf6eeaec9a081c5c39f2bf5b8d8d49d.zip |
Arrange for sqlite3_last_insert_rowid() to work with virtual tables. (CVS 3259)
FossilOrigin-Name: afa39a46320e9996a5478ea6e19eb4c2014327ac
Diffstat (limited to 'src/insert.c')
-rw-r--r-- | src/insert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/insert.c b/src/insert.c index e36417767..efefb2aae 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.167 2006/06/15 07:29:01 danielk1977 Exp $ +** $Id: insert.c,v 1.168 2006/06/16 06:17:47 danielk1977 Exp $ */ #include "sqliteInt.h" @@ -632,7 +632,7 @@ void sqlite3Insert( */ #ifndef SQLITE_OMIT_VIRTUALTABLE if( IsVirtual(pTab) ){ - sqlite3VdbeOp3(v, OP_VUpdate, 0, pTab->nCol+2, + sqlite3VdbeOp3(v, OP_VUpdate, 1, pTab->nCol+2, (const char*)pTab->pVtab, P3_VTAB); }else #endif |