/ Check-in [e3350dbd]
Login

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

Overview
Comment:Make sure the P5 argument to the OP_VUpdate opcode is always set to a valid conflict resolution code.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e3350dbd9f472c27ea6bc872d85098ac89d874c7
User & Date: drh 2011-05-30 14:35:48
Context
2011-05-30
15:06
Update evidence marks on the URI filename tests to conform to the latest documentation. check-in: 1bab03c4 user: drh tags: trunk
14:35
Make sure the P5 argument to the OP_VUpdate opcode is always set to a valid conflict resolution code. check-in: e3350dbd user: drh tags: trunk
2011-05-28
19:24
Fix a "#ifdef" from check-in [03f7d36a8a] that should have been "#ifndef". check-in: edb865c3 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/delete.c.

   397    397   
   398    398       /* Delete the row */
   399    399   #ifndef SQLITE_OMIT_VIRTUALTABLE
   400    400       if( IsVirtual(pTab) ){
   401    401         const char *pVTab = (const char *)sqlite3GetVTable(db, pTab);
   402    402         sqlite3VtabMakeWritable(pParse, pTab);
   403    403         sqlite3VdbeAddOp4(v, OP_VUpdate, 0, 1, iRowid, pVTab, P4_VTAB);
          404  +      sqlite3VdbeChangeP5(v, OE_Abort);
   404    405         sqlite3MayAbort(pParse);
   405    406       }else
   406    407   #endif
   407    408       {
   408    409         int count = (pParse->nested==0);    /* True to count changes */
   409    410         sqlite3GenerateRowDelete(pParse, pTab, iCur, iRowid, count, pTrigger, OE_Default);
   410    411       }