/ Check-in [e35eb877]
Login

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

Overview
Comment:Fix an off-by-one error on a Goto in the code generator, that only causes problems for a REPLACE on an INTEGER PRIMARY KEY in non-debug builds. Test case in TH3.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e35eb8776ed539afe1d5db099470ab1124d8dd2db73ee5db7c811f8df9a9576e
User & Date: drh 2019-01-12 16:19:23
Context
2019-01-12
20:55
Fix another problem with handling corrupt records in fts5_decode(). check-in: 726e398b user: dan tags: trunk
16:19
Fix an off-by-one error on a Goto in the code generator, that only causes problems for a REPLACE on an INTEGER PRIMARY KEY in non-debug builds. Test case in TH3. check-in: e35eb877 user: drh tags: trunk
14:58
Fix a problem with corrupt database handling in the fts3 matchinfo() function. check-in: 703646b1 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/insert.c.

  1838   1838         sqlite3VdbeResolveLabel(v, addrUniqueOk);
  1839   1839       }
  1840   1840       if( regR!=regIdx ) sqlite3ReleaseTempRange(pParse, regR, nPkField);
  1841   1841     }
  1842   1842   
  1843   1843     /* If the IPK constraint is a REPLACE, run it last */
  1844   1844     if( ipkTop ){
  1845         -    sqlite3VdbeGoto(v, ipkTop+1);
         1845  +    sqlite3VdbeGoto(v, ipkTop);
  1846   1846       VdbeComment((v, "Do IPK REPLACE"));
  1847   1847       sqlite3VdbeJumpHere(v, ipkBottom);
  1848   1848     }
  1849   1849   
  1850   1850     *pbMayReplace = seenReplace;
  1851   1851     VdbeModuleComment((v, "END: GenCnstCks(%d)", seenReplace));
  1852   1852   }