mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Parse foreign key constraints and populate internal data structures
appropriately. Constraints are still not enforced. (CVS 738) FossilOrigin-Name: 170711ca65dc894d0486b9d575edb8f1708250fb
This commit is contained in:
@@ -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.99 2002/08/29 23:59:48 drh Exp $
|
||||
** $Id: main.c,v 1.100 2002/08/31 18:53:06 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include "os.h"
|
||||
@@ -354,6 +354,7 @@ sqlite *sqlite_open(const char *zFilename, int mode, char **pzErrMsg){
|
||||
sqliteHashInit(&db->idxHash, SQLITE_HASH_STRING, 0);
|
||||
sqliteHashInit(&db->trigHash, SQLITE_HASH_STRING, 0);
|
||||
sqliteHashInit(&db->aFunc, SQLITE_HASH_STRING, 1);
|
||||
sqliteHashInit(&db->aFKey, SQLITE_HASH_STRING, 1);
|
||||
sqliteRegisterBuiltinFunctions(db);
|
||||
db->onError = OE_Default;
|
||||
db->priorNewRowid = 0;
|
||||
@@ -466,6 +467,7 @@ void sqlite_close(sqlite *db){
|
||||
}
|
||||
}
|
||||
sqliteHashClear(&db->aFunc);
|
||||
sqliteHashClear(&db->aFKey);
|
||||
sqliteFree(db);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user