Lines Matching refs:tab
53 Table *tab; in sqliteBeginTrigger() local
74 tab = sqliteSrcListLookup(pParse, pTableName); in sqliteBeginTrigger()
75 if( !tab ){ in sqliteBeginTrigger()
78 iDb = isTemp ? 1 : tab->iDb; in sqliteBeginTrigger()
81 "database %s", db->aDb[tab->iDb].zName); in sqliteBeginTrigger()
91 if( sqliteStrNICmp(tab->zName, "sqlite_", 7)==0 ){ in sqliteBeginTrigger()
96 if( tab->pSelect && tr_tm != TK_INSTEAD ){ in sqliteBeginTrigger()
101 if( !tab->pSelect && tr_tm == TK_INSTEAD ){ in sqliteBeginTrigger()
109 const char *zDb = db->aDb[tab->iDb].zName; in sqliteBeginTrigger()
111 if( tab->iDb==1 || isTemp ) code = SQLITE_CREATE_TEMP_TRIGGER; in sqliteBeginTrigger()
112 if( sqliteAuthCheck(pParse, code, zName, tab->zName, zDbTrig) ){ in sqliteBeginTrigger()
115 if( sqliteAuthCheck(pParse, SQLITE_INSERT, SCHEMA_TABLE(tab->iDb), 0, zDb)){ in sqliteBeginTrigger()
138 nt->iTabDb = tab->iDb; in sqliteBeginTrigger()