/ Check-in [9b904654]
Login

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

Overview
Comment:Reserve a range of bits in the SQLITE_OPEN_xxxx bit vector for future expansion.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 9b9046546db5b060e37e7ba01c23bb7e9528d861
User & Date: drh 2011-02-23 22:39:23
Context
2011-02-24
21:10
Fix a typo in a comment. No changes to code. check-in: af475618 user: drh tags: trunk
2011-02-23
22:39
Reserve a range of bits in the SQLITE_OPEN_xxxx bit vector for future expansion. check-in: 9b904654 user: drh tags: trunk
14:00
Fix a typo in the robust_flock() macro for systems without EINTR. check-in: af9ba2a6 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/main.c.

  1804   1804     }
  1805   1805   
  1806   1806     /* Remove harmful bits from the flags parameter
  1807   1807     **
  1808   1808     ** The SQLITE_OPEN_NOMUTEX and SQLITE_OPEN_FULLMUTEX flags were
  1809   1809     ** dealt with in the previous code block.  Besides these, the only
  1810   1810     ** valid input flags for sqlite3_open_v2() are SQLITE_OPEN_READONLY,
  1811         -  ** SQLITE_OPEN_READWRITE, and SQLITE_OPEN_CREATE.  Silently mask
         1811  +  ** SQLITE_OPEN_READWRITE, SQLITE_OPEN_CREATE, SQLITE_OPEN_SHAREDCACHE,
         1812  +  ** SQLITE_OPEN_PRIVATECACHE, and some reserved bits.  Silently mask
  1812   1813     ** off all other flags.
  1813   1814     */
  1814   1815     flags &=  ~( SQLITE_OPEN_DELETEONCLOSE |
  1815   1816                  SQLITE_OPEN_EXCLUSIVE |
  1816   1817                  SQLITE_OPEN_MAIN_DB |
  1817   1818                  SQLITE_OPEN_TEMP_DB | 
  1818   1819                  SQLITE_OPEN_TRANSIENT_DB | 

Changes to src/sqlite.h.in.

   473    473   #define SQLITE_OPEN_SUBJOURNAL       0x00002000  /* VFS only */
   474    474   #define SQLITE_OPEN_MASTER_JOURNAL   0x00004000  /* VFS only */
   475    475   #define SQLITE_OPEN_NOMUTEX          0x00008000  /* Ok for sqlite3_open_v2() */
   476    476   #define SQLITE_OPEN_FULLMUTEX        0x00010000  /* Ok for sqlite3_open_v2() */
   477    477   #define SQLITE_OPEN_SHAREDCACHE      0x00020000  /* Ok for sqlite3_open_v2() */
   478    478   #define SQLITE_OPEN_PRIVATECACHE     0x00040000  /* Ok for sqlite3_open_v2() */
   479    479   #define SQLITE_OPEN_WAL              0x00080000  /* VFS only */
          480  +
          481  +/* Reserved:                         0x00F00000 */
   480    482   
   481    483   /*
   482    484   ** CAPI3REF: Device Characteristics
   483    485   **
   484    486   ** The xDeviceCharacteristics method of the [sqlite3_io_methods]
   485    487   ** object returns an integer which is a vector of the these
   486    488   ** bit values expressing I/O characteristics of the mass storage