/ Check-in [680d3ab5]
Login

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

Overview
Comment:Do not rollback the schema if a parsing error occurs while parsing the schema and writable_schema is set.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 680d3ab56b578bd4b0170559f9e35615ff43cf2c
User & Date: drh 2013-02-19 18:34:45
Context
2013-02-19
18:45
Enhance the pgidx of the showdb utility so that it provides better information even if the sqlite_master table is corrupt. check-in: d14263a7 user: drh tags: trunk
18:34
Do not rollback the schema if a parsing error occurs while parsing the schema and writable_schema is set. check-in: 680d3ab5 user: drh tags: trunk
18:34
Truncate over-length source lines in sqliteInt.h to 80 characters or less. check-in: d71abab0 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/main.c.

   998    998         sqlite3BtreeRollback(p, tripCode);
   999    999         db->aDb[i].inTrans = 0;
  1000   1000       }
  1001   1001     }
  1002   1002     sqlite3VtabRollback(db);
  1003   1003     sqlite3EndBenignMalloc();
  1004   1004   
  1005         -  if( db->flags&SQLITE_InternChanges ){
         1005  +  if( (db->flags&SQLITE_InternChanges)!=0 && db->init.busy==0 ){
  1006   1006       sqlite3ExpirePreparedStatements(db);
  1007   1007       sqlite3ResetAllSchemasOfConnection(db);
  1008   1008     }
  1009   1009   
  1010   1010     /* Any deferred constraint violations have now been resolved. */
  1011   1011     db->nDeferredCons = 0;
  1012   1012