/ Check-in [5718a9d5]
Login

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

Overview
Comment:Minor simplification of NULL value handling for STAT4.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | nullStat4
Files: files | file ages | folders
SHA3-256: 5718a9d5fc3fdfc89db869501c81fda39b3ec5c7e11fa0038fc258e316f5d8a1
User & Date: mistachkin 2019-04-18 19:21:19
Context
2019-04-23
15:08
Minor simplification of NULL value handling for STAT4. check-in: 69bad925 user: mistachkin tags: trunk
2019-04-18
19:21
Minor simplification of NULL value handling for STAT4. Closed-Leaf check-in: 5718a9d5 user: mistachkin tags: nullStat4
2019-04-17
21:12
Small performance and size optimization in sqlite3WalFindFrame(). check-in: 03f2e788 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes 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);