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

Prevent the use of subroutines to implement the RHS of IN operators within

CHECK constraints.

FossilOrigin-Name: 6b24d3fb94e787d25e49501714780dfb0c0c99077102056aa68445f4808cdd57
This commit is contained in:
drh
2018-12-24 11:55:44 +00:00
parent 2c04131ca7
commit efb699fc7c
3 changed files with 8 additions and 11 deletions

View File

@@ -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.