/ Check-in [845153be]
Login

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

Overview
Comment:Fix an invalid cast operation in the WITHOUT ROWID parsing logic.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | omit-rowid
Files: files | file ages | folders
SHA1:845153be36d5ca0ca9d930c56418fb080d906740
User & Date: drh 2013-11-01 17:59:53
Context
2013-11-01
18:14
Additional UPDATE test cases for WITHOUT ROWID. check-in: 65384ae0 user: drh tags: omit-rowid
17:59
Fix an invalid cast operation in the WITHOUT ROWID parsing logic. check-in: 845153be user: drh tags: omit-rowid
17:21
Merge all changes from trunk, and disable a pair of corruption tests that are no longer valid since sqlite_master.rootpage can now be NULL for tables. check-in: dd5d57b9 user: drh tags: omit-rowid
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/build.c.

   963    963       */
   964    964   #if !defined(SQLITE_OMIT_VIEW) || !defined(SQLITE_OMIT_VIRTUALTABLE)
   965    965       if( isView || isVirtual ){
   966    966         sqlite3VdbeAddOp2(v, OP_Integer, 0, reg2);
   967    967       }else
   968    968   #endif
   969    969       {
   970         -      pParse->addrCrTab = (u16)sqlite3VdbeAddOp2(v, OP_CreateTable, iDb, reg2);
          970  +      pParse->addrCrTab = sqlite3VdbeAddOp2(v, OP_CreateTable, iDb, reg2);
   971    971       }
   972    972       sqlite3OpenMasterTable(pParse, iDb);
   973    973       sqlite3VdbeAddOp2(v, OP_NewRowid, 0, reg1);
   974    974       sqlite3VdbeAddOp2(v, OP_Null, 0, reg3);
   975    975       sqlite3VdbeAddOp3(v, OP_Insert, 0, reg3, reg1);
   976    976       sqlite3VdbeChangeP5(v, OPFLAG_APPEND);
   977    977       sqlite3VdbeAddOp0(v, OP_Close);