/ Check-in [adcb4665]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove an unnecessary decision.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | is-true-operator
Files: files | file ages | folders
SHA3-256: adcb4665490404e8da2de128dd5df9aeed8e08893649dedb6788ebb5d957b400
User & Date: drh 2018-02-27 00:58:13
Context
2018-02-27
14:49
Clean up comments and variable names prior to merge. Closed-Leaf check-in: 6445519e user: drh tags: is-true-operator
00:58
Remove an unnecessary decision. check-in: adcb4665 user: drh tags: is-true-operator
2018-02-26
21:26
Code simplifications. New test cases. check-in: 57508518 user: drh tags: is-true-operator
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/expr.c.

  1805   1805         }else{
  1806   1806           pWalker->eCode = 0;
  1807   1807           return WRC_Abort;
  1808   1808         }
  1809   1809       case TK_ID:
  1810   1810         /* Convert "true" or "false" in a DEFAULT clause into the
  1811   1811         ** appropriate TK_TRUEFALSE operator */
  1812         -      if( pWalker->eCode>=4 && sqlite3ExprIdToTrueFalse(pExpr) ){
         1812  +      if( sqlite3ExprIdToTrueFalse(pExpr) ){
  1813   1813           return WRC_Prune;
  1814   1814         }
  1815   1815         /* Fall thru */
  1816   1816       case TK_COLUMN:
  1817   1817       case TK_AGG_FUNCTION:
  1818   1818       case TK_AGG_COLUMN:
  1819   1819         testcase( pExpr->op==TK_ID );