/ Check-in [fc47316e]
Login

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

Overview
Comment:Remove a faulty ALWAYS() macro added by check-in [8fa254aa6329bdd0].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: fc47316e9b6b9f4c37cb7d3fe2af3f4dfb900fb5f07945dbf1239152a2d8f836
User & Date: drh 2018-09-07 19:12:08
Context
2018-09-08
16:53
Fix typo in the Win32-specific code for the fileio extension. check-in: e812e5d5 user: mistachkin tags: trunk
2018-09-07
19:12
Remove a faulty ALWAYS() macro added by check-in [8fa254aa6329bdd0]. check-in: fc47316e user: drh tags: trunk
18:56
Add extra test case to altertab.test. check-in: 64c3ee3c user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/alter.c.

  1535   1535           sNC.pParse = &sParse;
  1536   1536           sqlite3SelectPrep(&sParse, sParse.pNewTable->pSelect, &sNC);
  1537   1537           if( sParse.nErr ) rc = sParse.rc;
  1538   1538         }
  1539   1539   
  1540   1540         else if( sParse.pNewTrigger ){
  1541   1541           rc = renameResolveTrigger(&sParse, bTemp ? 0 : zDb);
  1542         -        if( ALWAYS(rc==SQLITE_OK) ){
         1542  +        if( rc==SQLITE_OK ){
  1543   1543             int i1 = sqlite3SchemaToIndex(db, sParse.pNewTrigger->pTabSchema);
  1544   1544             int i2 = sqlite3FindDbName(db, zDb);
  1545   1545             if( i1==i2 ) sqlite3_result_int(context, 1);
  1546   1546           }
  1547   1547         }
  1548   1548       }
  1549   1549