Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Make sure foreign key constraints are disabled when a new database connection is created. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
fe57da72abef9d9003ac93f68699f740 |
| User & Date: | drh 2009-09-19 17:58:56.000 |
Context
|
2009-09-22
| ||
| 07:49 | merge trunk into creole branch check-in: 7a2c37063a user: bob tags: creole | |
|
2009-09-21
| ||
| 15:08 | Update documentation to include links to the mailing list and mailing list archives and to Paul Ruizendaal's TH1 documentation. check-in: 109114baf4 user: drh tags: trunk | |
|
2009-09-19
| ||
| 17:58 | Make sure foreign key constraints are disabled when a new database connection is created. check-in: fe57da72ab user: drh tags: trunk | |
| 15:32 | Add the --dotfiles option to the "extra" and "clean" commands. Ticket [4de876322f066]. check-in: a2749215b7 user: drh tags: trunk | |
Changes
Changes to src/db.c.
| ︙ | ︙ | |||
638 639 640 641 642 643 644 |
zDbName, &db,
SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
zVfs
);
if( rc!=SQLITE_OK ){
db_err(sqlite3_errmsg(db));
}
| | | 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 |
zDbName, &db,
SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
zVfs
);
if( rc!=SQLITE_OK ){
db_err(sqlite3_errmsg(db));
}
sqlite3_busy_timeout(db, 5000);
return db;
}
/*
** zDbName is the name of a database file. If no other database
** file is open, then open this one. If another database file is
|
| ︙ | ︙ | |||
1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 |
/*
** This function registers auxiliary functions when the SQLite
** database connection is first established.
*/
LOCAL void db_connection_init(void){
static int once = 1;
if( once ){
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
);
if( g.fSqlTrace ){
sqlite3_trace(g.db, db_sql_trace, 0);
}
| > | 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 |
/*
** This function registers auxiliary functions when the SQLite
** database connection is first established.
*/
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
);
if( g.fSqlTrace ){
sqlite3_trace(g.db, db_sql_trace, 0);
}
|
| ︙ | ︙ |