aboutsummaryrefslogtreecommitdiff
path: root/src/attach.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2019-08-17 00:53:29 +0000
committerdrh <drh@noemail.net>2019-08-17 00:53:29 +0000
commit217ca657d82f2324d6c5a97598bf4f77ebbb1fe7 (patch)
tree2d6db295d13828d0624f70b99e6d476e93569f1b /src/attach.c
parentcc5979dbd384049c1efef847e5cc22082191024b (diff)
parent42d2fce7f5b5e5776f3e881b4685deae2e0266ff (diff)
downloadsqlite-217ca657d82f2324d6c5a97598bf4f77ebbb1fe7.tar.gz
sqlite-217ca657d82f2324d6c5a97598bf4f77ebbb1fe7.zip
The SQLITE_DIRECTONLY flag, when added to sqlite3_create_function() prevents
the function from being used inside a trigger or view. FossilOrigin-Name: de767376987f7668b0770c4920f1532e341b5a27f797d69c0f5e92b87d036170
Diffstat (limited to 'src/attach.c')
-rw-r--r--src/attach.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/attach.c b/src/attach.c
index 55e0eb536..61f169ed7 100644
--- a/src/attach.c
+++ b/src/attach.c
@@ -560,6 +560,7 @@ int sqlite3FixExpr(
Expr *pExpr /* The expression to be fixed to one database */
){
while( pExpr ){
+ ExprSetProperty(pExpr, EP_Indirect);
if( pExpr->op==TK_VARIABLE ){
if( pFix->pParse->db->init.busy ){
pExpr->op = TK_NULL;