/ Check-in [491ff5fb]
Login

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

Overview
Comment:Change the OP_JournalMode implementation so that it works even if a substitute sqlite3PagerFilename() that might return NULL is used.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 491ff5fb2504173d6905e38b8ea35737338aaa84
User & Date: drh 2011-10-17 23:15:31
Context
2011-10-18
12:44
Fix a floating-point exception that can occur when an FTS4 query contains a large number of tokens connected by AND or NEAR operators. check-in: 3126754c user: dan tags: trunk
2011-10-17
23:15
Change the OP_JournalMode implementation so that it works even if a substitute sqlite3PagerFilename() that might return NULL is used. check-in: 491ff5fb user: drh tags: trunk
20:41
Avoid 32-bit integer overflow when evaluating the exponent of a floating point value during ascii to binary conversion. check-in: 4becc47e user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbe.c.

  5463   5463   #ifndef SQLITE_OMIT_WAL
  5464   5464     zFilename = sqlite3PagerFilename(pPager);
  5465   5465   
  5466   5466     /* Do not allow a transition to journal_mode=WAL for a database
  5467   5467     ** in temporary storage or if the VFS does not support shared memory 
  5468   5468     */
  5469   5469     if( eNew==PAGER_JOURNALMODE_WAL
  5470         -   && (zFilename[0]==0                         /* Temp file */
         5470  +   && (sqlite3Strlen30(zFilename)==0           /* Temp file */
  5471   5471          || !sqlite3PagerWalSupported(pPager))   /* No shared-memory support */
  5472   5472     ){
  5473   5473       eNew = eOld;
  5474   5474     }
  5475   5475   
  5476   5476     if( (eNew!=eOld)
  5477   5477      && (eOld==PAGER_JOURNALMODE_WAL || eNew==PAGER_JOURNALMODE_WAL)