/ Check-in [dea7d33b]
Login

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

Overview
Comment:Change a comment inside a block of code in parse.y from C++ to C style.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: dea7d33b2d7d25280a31a2b9c1573f4292b81187
User & Date: dan 2010-07-15 11:14:21
Context
2010-07-15
14:59
When creating a journal file on unix, attempt to create it with the same permissions as the associated database file. check-in: a121cd80 user: dan tags: trunk
11:14
Change a comment inside a block of code in parse.y from C++ to C style. check-in: dea7d33b user: dan tags: trunk
2010-07-14
20:51
Fix a typo in a comment in os_unix.c. check-in: e1e73125 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/parse.y.

   956    956   }
   957    957   %ifndef SQLITE_OMIT_SUBQUERY
   958    958     %type in_op {int}
   959    959     in_op(A) ::= IN.      {A = 0;}
   960    960     in_op(A) ::= NOT IN.  {A = 1;}
   961    961     expr(A) ::= expr(X) in_op(N) LP exprlist(Y) RP(E). [IN] {
   962    962       if( Y==0 ){
   963         -      // Expressions of the form
   964         -      //
   965         -      //      expr1 IN ()
   966         -      //      expr1 NOT IN ()
   967         -      //
   968         -      // simplify to constants 0 (false) and 1 (true), respectively,
   969         -      // regardless of the value of expr1.
   970         -      //
          963  +      /* Expressions of the form
          964  +      **
          965  +      **      expr1 IN ()
          966  +      **      expr1 NOT IN ()
          967  +      **
          968  +      ** simplify to constants 0 (false) and 1 (true), respectively,
          969  +      ** regardless of the value of expr1.
          970  +      */
   971    971         A.pExpr = sqlite3PExpr(pParse, TK_INTEGER, 0, 0, &sqlite3IntTokens[N]);
   972    972         sqlite3ExprDelete(pParse->db, X.pExpr);
   973    973       }else{
   974    974         A.pExpr = sqlite3PExpr(pParse, TK_IN, X.pExpr, 0, 0);
   975    975         if( A.pExpr ){
   976    976           A.pExpr->x.pList = Y;
   977    977           sqlite3ExprSetHeight(pParse, A.pExpr);