mirror of
https://github.com/sqlite/sqlite.git
synced 2025-12-21 13:38:01 +03:00
Enhance triggers so that they can use table-valued-functions that exist in
schemas outside of the schema in which the trigger is defined. FossilOrigin-Name: 1fa74930ab56171e2e840d4a5b259abafb0ad1e0320fc3030066570a6dd10002
This commit is contained in:
@@ -499,7 +499,9 @@ int sqlite3FixSrcList(
|
||||
}
|
||||
sqlite3DbFree(pFix->pParse->db, pItem->zDatabase);
|
||||
pItem->zDatabase = 0;
|
||||
pItem->pSchema = pFix->pSchema;
|
||||
if( !pItem->fg.isTabFunc ){
|
||||
pItem->pSchema = pFix->pSchema;
|
||||
}
|
||||
}
|
||||
#if !defined(SQLITE_OMIT_VIEW) || !defined(SQLITE_OMIT_TRIGGER)
|
||||
if( sqlite3FixSelect(pFix, pItem->pSelect) ) return 1;
|
||||
|
||||
Reference in New Issue
Block a user