Differences From:
File
src/db.c
part of check-in
[bbb8ae7ebf]
- Make it harder to misconfigure the user accounts in a way that might give
people greater access than intended.
by
drh on
2009-09-15 18:44:51.
[view]
To:
File
src/db.c
part of check-in
[7a2c37063a]
- merge trunk into creole branch
by
bob on
2009-09-22 07:49:39.
Also file
src/db.c
part of check-in
[fe57da72ab]
- Make sure foreign key constraints are disabled when a new database connection
is created.
by
drh on
2009-09-19 17:58:56.
[view]
@@ -1144,8 +1144,9 @@
*/
LOCAL void db_connection_init(void){
static int once = 1;
if( once ){
+ sqlite3_exec(g.db, "PRAGMA foreign_keys=OFF;", 0, 0, 0);
sqlite3_create_function(g.db, "print", -1, SQLITE_UTF8, 0,db_sql_print,0,0);
sqlite3_create_function(
g.db, "file_is_selected", 1, SQLITE_UTF8, 0, file_is_selected,0,0
);