1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-10 01:02:56 +03:00

Refactor the names of the new controls for restricting what actions the schema

can take behind the application's back.

FossilOrigin-Name: 65d7d39a858c51ffd781f5a6335e029895e597aeb1e1ccdadea8ce79c8ad412f
This commit is contained in:
drh
2020-01-04 20:58:41 +00:00
parent 337ca519e1
commit 67c826536f
7 changed files with 35 additions and 53 deletions

View File

@@ -891,13 +891,13 @@ static int resolveExprStep(Walker *pWalker, Expr *pExpr){
&& !IN_RENAME_OBJECT
){
if( (pDef->funcFlags & SQLITE_FUNC_DIRECT)!=0
|| (pParse->db->flags & SQLITE_UnsafeInView)==0
|| (pParse->db->flags & SQLITE_UnsafeDDL)==0
){
/* Functions prohibited in triggers and views if:
** (1) tagged with SQLITE_DIRECTONLY
** (2) not tagged with SQLITE_INNOCUOUS (which means it
** is tagged with SQLITE_FUNC_UNSAFE) and
** SQLITE_DBCONFIG_UNSAFE_IN_VIEW is off
** SQLITE_DBCONFIG_ENABLE_UNSAFE_DDL is off
*/
sqlite3ErrorMsg(pParse, "%s() prohibited in triggers and views",
pDef->zName);