branch | RCL_3 |
changeset 11 | 667e88a979d7 |
parent 0 | 08ec8eefde2f |
--- a/persistentstorage/sql/SQLite/attach.c Fri Mar 12 15:51:02 2010 +0200 +++ b/persistentstorage/sql/SQLite/attach.c Mon Mar 15 12:46:30 2010 +0200 @@ -144,8 +144,11 @@ sqlite3PagerLockingMode(pPager, db->dfltLockMode); sqlite3PagerJournalMode(pPager, db->dfltJournalMode); } + aNew->safety_level = 3; aNew->zName = sqlite3DbStrDup(db, zName); - aNew->safety_level = 3; + if( rc==SQLITE_OK && aNew->zName==0 ){ + rc = SQLITE_NOMEM; + } #if SQLITE_HAS_CODEC {