1
0
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:
drh
2018-11-02 17:38:39 +00:00
parent 7301e77402
commit 147ad061f6
4 changed files with 36 additions and 9 deletions

View File

@@ -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;