diff options
author | drh <drh@noemail.net> | 2019-08-27 17:01:07 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-08-27 17:01:07 +0000 |
commit | 790b37a2403eb479fcb9e33e0d7622b78524c579 (patch) | |
tree | c4297f9d28ccd385e5f68be0220f04a84efa4167 /src/expr.c | |
parent | 6397a78b2ba93729678ef0ea68d0765e046a360e (diff) | |
download | sqlite-790b37a2403eb479fcb9e33e0d7622b78524c579.tar.gz sqlite-790b37a2403eb479fcb9e33e0d7622b78524c579.zip |
Omit the "x IN (y)" to "x==y" optimization of check-in [e68b427afbc82e20]
(and ticket [e39d032577df6942]) as it causes difficult affinity problems
as demonstrated by ticket [dbaf8a6820be1ece] and the original assertion fault
is no longer a factor due to countless other changes of the previous 5 years.
FossilOrigin-Name: 7f5168a76a400fc2e1e40c6950470b1bfb38a0be54fc5518c17c29fdae7d8f1f
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/expr.c b/src/expr.c index aac706644..fbb5ffafa 100644 --- a/src/expr.c +++ b/src/expr.c @@ -44,7 +44,6 @@ char sqlite3TableColumnAffinity(Table *pTab, int iCol){ */ char sqlite3ExprAffinity(Expr *pExpr){ int op; - if( pExpr->flags & EP_Generic ) return 0; while( ExprHasProperty(pExpr, EP_Skip) ){ assert( pExpr->op==TK_COLLATE ); pExpr = pExpr->pLeft; @@ -156,7 +155,6 @@ CollSeq *sqlite3ExprCollSeq(Parse *pParse, Expr *pExpr){ Expr *p = pExpr; while( p ){ int op = p->op; - if( p->flags & EP_Generic ) break; if( op==TK_REGISTER ) op = p->op2; if( (op==TK_AGG_COLUMN || op==TK_COLUMN || op==TK_TRIGGER) && p->y.pTab!=0 |