Lines Matching defs:iDb
241 ** db->aDb[iDb].pSchema structure. The mutexes required for schema
245 ** (2) if iDb!=1, then the mutex on db->aDb[iDb].pBt.
247 ** If pSchema is not NULL, then iDb is computed from pSchema and
250 int sqlite3SchemaMutexHeld(sqlite3 *db, int iDb, Schema *pSchema){
253 if( pSchema ) iDb = sqlite3SchemaToIndex(db, pSchema);
254 assert( iDb>=0 && iDb<db->nDb );
256 if( iDb==1 ) return 1;
257 p = db->aDb[iDb].pBt;