diff options
author | drh <drh@noemail.net> | 2018-12-24 11:55:44 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2018-12-24 11:55:44 +0000 |
commit | efb699fc7cbd00b5a41403e4cbc108860beb3949 (patch) | |
tree | 1a8912e727d137d7a30143a5d9b99a986fe13d73 /src/expr.c | |
parent | 2c04131ca7e485cd6e6f0741c14b2c570c65122c (diff) | |
download | sqlite-efb699fc7cbd00b5a41403e4cbc108860beb3949.tar.gz sqlite-efb699fc7cbd00b5a41403e4cbc108860beb3949.zip |
Prevent the use of subroutines to implement the RHS of IN operators within
CHECK constraints.
FossilOrigin-Name: 6b24d3fb94e787d25e49501714780dfb0c0c99077102056aa68445f4808cdd57
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c index dba01b4d8..f438f26fc 100644 --- a/src/expr.c +++ b/src/expr.c @@ -2685,7 +2685,7 @@ void sqlite3CodeRhsOfIN( ** If all of the above are false, then we can compute the RHS just once ** and reuse it many names. */ - if( !ExprHasProperty(pExpr, EP_VarSelect) ){ + if( !ExprHasProperty(pExpr, EP_VarSelect) && pParse->iSelfTab==0 ){ /* Reuse of the RHS is allowed */ /* If this routine has already been coded, but the previous code ** might not have been invoked yet, so invoke it now as a subroutine. |