1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Simplified error message for the unsafe use of a virtual table.

FossilOrigin-Name: d662129a601e05e8fca5717a890b5bc920b80a750d061f3c2494788d32b917a5
This commit is contained in:
drh
2020-01-09 13:08:28 +00:00
parent 05b32ee3c0
commit 32266a1072
3 changed files with 9 additions and 9 deletions

View File

@@ -4977,8 +4977,8 @@ static int selectExpander(Walker *pWalker, Select *p){
&& ALWAYS(pTab->pVTable!=0)
&& pTab->pVTable->eVtabRisk > ((db->flags & SQLITE_TrustedSchema)!=0)
){
sqlite3ErrorMsg(pParse, "cannot access \"%s\" from within a trigger"
" or view", pTab->zName);
sqlite3ErrorMsg(pParse, "unsafe use of virtual table \"%s\"",
pTab->zName);
}
pFrom->pSelect = sqlite3SelectDup(db, pTab->pSelect, 0);
nCol = pTab->nCol;