1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-27 08:52:26 +03:00

Arrange for sqlite3_last_insert_rowid() to work with virtual tables. (CVS 3259)

FossilOrigin-Name: afa39a46320e9996a5478ea6e19eb4c2014327ac
This commit is contained in:
danielk1977
2006-06-16 06:17:47 +00:00
parent dbf5a848c6
commit 1f6eec547c
8 changed files with 139 additions and 27 deletions

View File

@@ -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