Lines Matching refs:pNew
88 Db *pNew; /* Db object for the newly attached database */ in attachFunc() local
110 pNew = &db->aDb[db->init.iDb]; in attachFunc()
111 if( pNew->pBt ) sqlite3BtreeClose(pNew->pBt); in attachFunc()
112 pNew->pBt = 0; in attachFunc()
113 pNew->pSchema = 0; in attachFunc()
114 rc = sqlite3BtreeOpen(pVfs, "x\0", db, &pNew->pBt, 0, SQLITE_OPEN_MAIN_DB); in attachFunc()
150 pNew = &db->aDb[db->nDb]; in attachFunc()
151 memset(pNew, 0, sizeof(*pNew)); in attachFunc()
167 rc = sqlite3BtreeOpen(pVfs, zPath, db, &pNew->pBt, 0, flags); in attachFunc()
169 pNew->zDbSName = sqlite3DbStrDup(db, zName); in attachFunc()
177 pNew->pSchema = sqlite3SchemaGet(db, pNew->pBt); in attachFunc()
178 if( !pNew->pSchema ){ in attachFunc()
180 }else if( pNew->pSchema->file_format && pNew->pSchema->enc!=ENC(db) ){ in attachFunc()
185 sqlite3BtreeEnter(pNew->pBt); in attachFunc()
186 pPager = sqlite3BtreePager(pNew->pBt); in attachFunc()
188 sqlite3BtreeSecureDelete(pNew->pBt, in attachFunc()
191 sqlite3BtreeSetPagerFlags(pNew->pBt, in attachFunc()
194 sqlite3BtreeLeave(pNew->pBt); in attachFunc()
196 pNew->safety_level = SQLITE_DEFAULT_SYNCHRONOUS+1; in attachFunc()
197 if( rc==SQLITE_OK && pNew->zDbSName==0 ){ in attachFunc()