1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-15 11:41:13 +03:00

Fix ATTACH to use the symbolic name PAGER_SYNCHRONOUS_FULL rather than

an integer literal.

FossilOrigin-Name: c4e192a0e5a408e198dbacb2752859a00d2b572f
This commit is contained in:
drh
2016-03-08 14:16:23 +00:00
parent 0dba3304f6
commit 6702f761ea
3 changed files with 8 additions and 8 deletions

View File

@@ -161,7 +161,7 @@ static void attachFunc(
#endif
sqlite3BtreeLeave(aNew->pBt);
}
aNew->safety_level = 3;
aNew->safety_level = PAGER_SYNCHRONOUS_FULL;
aNew->zName = sqlite3DbStrDup(db, zName);
if( rc==SQLITE_OK && aNew->zName==0 ){
rc = SQLITE_NOMEM_BKPT;