/ Check-in [b390e1f7]
Login

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

Overview
Comment:Document the fast that the result flag combinations to sqlite3_open_v2() that are not defined in the documentation results in undefined behavior. Ticket #3037. (CVS 4974)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b390e1f7f8d2b530a6765f2ab6804335c5550870
User & Date: drh 2008-04-10 13:38:18
Context
2008-04-10
13:42
Fix to the "copy" method in the TCL interface. Ticket #3039. (CVS 4975) check-in: 6f07968e user: drh tags: trunk
13:38
Document the fast that the result flag combinations to sqlite3_open_v2() that are not defined in the documentation results in undefined behavior. Ticket #3037. (CVS 4974) check-in: b390e1f7 user: drh tags: trunk
13:33
First cut at optimizing single-row updates to use a one-pass algorithm. (CVS 4973) check-in: fba97f78 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/sqlite.h.in.

    26     26   ** on how SQLite interfaces are suppose to operate.
    27     27   **
    28     28   ** The name of this file under configuration management is "sqlite.h.in".
    29     29   ** The makefile makes some minor changes to this file (such as inserting
    30     30   ** the version number) and changes its name to "sqlite3.h" as
    31     31   ** part of the build process.
    32     32   **
    33         -** @(#) $Id: sqlite.h.in,v 1.302 2008/04/03 14:36:26 danielk1977 Exp $
           33  +** @(#) $Id: sqlite.h.in,v 1.303 2008/04/10 13:38:18 drh Exp $
    34     34   */
    35     35   #ifndef _SQLITE3_H_
    36     36   #define _SQLITE3_H_
    37     37   #include <stdarg.h>     /* Needed for the definition of va_list */
    38     38   
    39     39   /*
    40     40   ** Make sure we can call this stuff from C++.
................................................................................
  1979   1979   ** the database for reading and writing if possible, or reading only if
  1980   1980   ** if the file is write protected.  In either case the database
  1981   1981   ** must already exist or an error is returned.  The third option
  1982   1982   ** opens the database for reading and writing and creates it if it does
  1983   1983   ** not already exist.
  1984   1984   ** The third options is behavior that is always used for [sqlite3_open()]
  1985   1985   ** and [sqlite3_open16()].
         1986  +**
         1987  +** If the 4th parameter to [sqlite3_open_v2()] is not one of the
         1988  +** combinations shown above then the behavior is undefined.
  1986   1989   **
  1987   1990   ** If the filename is ":memory:", then an private
  1988   1991   ** in-memory database is created for the connection.  This in-memory
  1989   1992   ** database will vanish when the database connection is closed.  Future
  1990   1993   ** version of SQLite might make use of additional special filenames
  1991   1994   ** that begin with the ":" character.  It is recommended that 
  1992   1995   ** when a database filename really does begin with