1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Add some more code to support manifest typing in indices. Not activated yet. (CVS 1362)

FossilOrigin-Name: 2f16c9ef3c101c4280991ce3cb0c3bea7b6ed439
This commit is contained in:
danielk1977
2004-05-12 11:24:02 +00:00
parent cfcdaefe11
commit 8d059845fc
11 changed files with 414 additions and 111 deletions

View File

@@ -14,7 +14,7 @@
** other files are for internal use by SQLite and should not be
** accessed by users of the library.
**
** $Id: main.c,v 1.174 2004/05/11 09:50:02 danielk1977 Exp $
** $Id: main.c,v 1.175 2004/05/12 11:24:03 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@@ -286,15 +286,9 @@ static int sqlite3InitOne(sqlite *db, int iDb, char **pzErrMsg){
}else{
if( iDb==0 ){
/* This SQL statement tries to read the temp.* schema from the
** sqlite_temp_master table. It might return SQLITE_EMPTY. We
** unset the SQLITE_InternChanges flag temporarily to ensure
** that the sqlite_master entry is not removed from the internal
** schema if this does return SQLITE_EMPTY.
** sqlite_temp_master table. It might return SQLITE_EMPTY.
*/
assert( db->flags&SQLITE_InternChanges );
db->flags &= ~SQLITE_InternChanges;
rc = sqlite3_exec(db, init_script1, sqlite3InitCallback, &initData, 0);
db->flags |= SQLITE_InternChanges;
if( rc==SQLITE_OK || rc==SQLITE_EMPTY ){
rc = sqlite3_exec(db, init_script2, sqlite3InitCallback, &initData, 0);
}