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/test_schema.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/test_schema.c')
-rw-r--r-- | src/test_schema.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test_schema.c b/src/test_schema.c index e5da4f4d4..9d8a6b1d5 100644 --- a/src/test_schema.c +++ b/src/test_schema.c @@ -13,7 +13,7 @@ ** is not included in the SQLite library. It is used for automated ** testing of the SQLite library. ** -** $Id: test_schema.c,v 1.2 2006/06/15 16:26:45 danielk1977 Exp $ +** $Id: test_schema.c,v 1.3 2006/06/16 06:17:47 danielk1977 Exp $ */ /* The code in this file defines a sqlite3 module that provides @@ -301,6 +301,7 @@ static int register_schema_module( Tcl_WrongNumArgs(interp, 1, objv, "DB"); return TCL_ERROR; } + if( getDbPointer(interp, Tcl_GetString(objv[1]), &db) ) return TCL_ERROR; #ifndef SQLITE_OMIT_VIRTUALTABLE sqlite3_create_module(db, "schema", &schemaModule, 0); #endif |