/ Check-in [442c177d]
Login

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

Overview
Comment:Minor simplification of NULL value handling for STAT4. Cherrypick of [69bad9257f8db6a2] from trunk.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | branch-3.28
Files: files | file ages | folders
SHA3-256: 442c177dc444d614e8a665cfb62c4576cbf1002ed147dc272cea4e80cd9b92b4
User & Date: mistachkin 2019-04-23 15:21:00
Context
2019-06-03
13:53
Fix the count-of-view optimization so that it is (correctly) disabled for a query that includes a WHERE clause or a GROUP BY clause. Cherrypick of [05897ca48a40c6771]. check-in: 583e5a0a user: mistachkin tags: branch-3.28
2019-04-23
15:21
Minor simplification of NULL value handling for STAT4. Cherrypick of [69bad9257f8db6a2] from trunk. check-in: 442c177d user: mistachkin tags: branch-3.28
15:08
Minor simplification of NULL value handling for STAT4. check-in: 69bad925 user: mistachkin tags: trunk
2019-04-16
19:49
Version 3.28.0 check-in: 884b4b7e user: drh tags: trunk, release, version-3.28.0
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbemem.c.

  1507   1507           pVal->u.i = -pVal->u.i;
  1508   1508         }
  1509   1509         sqlite3ValueApplyAffinity(pVal, affinity, enc);
  1510   1510       }
  1511   1511     }else if( op==TK_NULL ){
  1512   1512       pVal = valueNew(db, pCtx);
  1513   1513       if( pVal==0 ) goto no_mem;
  1514         -    sqlite3VdbeMemNumerify(pVal);
         1514  +    sqlite3VdbeMemSetNull(pVal);
  1515   1515     }
  1516   1516   #ifndef SQLITE_OMIT_BLOB_LITERAL
  1517   1517     else if( op==TK_BLOB ){
  1518   1518       int nVal;
  1519   1519       assert( pExpr->u.zToken[0]=='x' || pExpr->u.zToken[0]=='X' );
  1520   1520       assert( pExpr->u.zToken[1]=='\'' );
  1521   1521       pVal = valueNew(db, pCtx);