1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-12-21 13:38:01 +03:00

Eponymous virtual tables appear to exist in all schemas. This is an alternative

and improved fix to the eponymous virtual table in trigger problem that
was previously addressed by checkin [1fa74930ab56171e].

FossilOrigin-Name: b8d35c4a7c99ce3753761e5b81269d52c3c910c603fa70b72549883ba68bc485
This commit is contained in:
drh
2018-11-05 16:38:10 +00:00
parent 383bb4fa62
commit 9196c81406
5 changed files with 24 additions and 28 deletions

View File

@@ -499,9 +499,7 @@ int sqlite3FixSrcList(
}
sqlite3DbFree(pFix->pParse->db, pItem->zDatabase);
pItem->zDatabase = 0;
if( !pItem->fg.isTabFunc ){
pItem->pSchema = pFix->pSchema;
}
pItem->pSchema = pFix->pSchema;
}
#if !defined(SQLITE_OMIT_VIEW) || !defined(SQLITE_OMIT_TRIGGER)
if( sqlite3FixSelect(pFix, pItem->pSelect) ) return 1;