diff options
author | shane <shane@noemail.net> | 2008-05-21 15:01:21 +0000 |
---|---|---|
committer | shane <shane@noemail.net> | 2008-05-21 15:01:21 +0000 |
commit | 0c6844e685930e4008f3dac77ff4fd9b4be0dcaa (patch) | |
tree | 1dc2ad6bcd597203337b4094cc544fdf8934313f /src | |
parent | e63b2c215eff711330341589da1e16b1ceb49a88 (diff) | |
download | sqlite-0c6844e685930e4008f3dac77ff4fd9b4be0dcaa.tar.gz sqlite-0c6844e685930e4008f3dac77ff4fd9b4be0dcaa.zip |
Update sqlite3_open*() documentation on shared cache/filename matching relationship. Ticket #3132. (CVS 5152)
FossilOrigin-Name: 235e384eca65d5007e8e0c440904eb254f9b976a
Diffstat (limited to 'src')
-rw-r--r-- | src/sqlite.h.in | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/sqlite.h.in b/src/sqlite.h.in index b584d8bf1..7a1666b03 100644 --- a/src/sqlite.h.in +++ b/src/sqlite.h.in @@ -30,7 +30,7 @@ ** the version number) and changes its name to "sqlite3.h" as ** part of the build process. ** -** @(#) $Id: sqlite.h.in,v 1.316 2008/05/21 13:44:14 drh Exp $ +** @(#) $Id: sqlite.h.in,v 1.317 2008/05/21 15:01:21 shane Exp $ */ #ifndef _SQLITE3_H_ #define _SQLITE3_H_ @@ -308,7 +308,7 @@ typedef int (*sqlite3_callback)(void*,int,char**, char**); ** invoked once for each row of result. ** ** {F12110} If the callback returns a non-zero value then [sqlite3_exec()] -** shall aborted the SQL statement it is currently evaluating, +** shall abort the SQL statement it is currently evaluating, ** skip all subsequent SQL statements, and return [SQLITE_ABORT]. ** ** {F12113} The [sqlite3_exec()] routine shall pass its 4th parameter through @@ -2096,6 +2096,14 @@ void sqlite3_progress_handler(sqlite3*, int, int(*)(void*), void*); ** [sqlite3_open_v2(F,D,G,V)] will use the ** [sqlite3_vfs] object identified by the V parameter, or ** the default [sqlite3_vfs] object is V is a NULL pointer. +** +** {F12723} Two [database connection | database connections] will share a common cache +** if both were opened with the same VFS +** while [sqlite3_enable_shared_cache | shared cache mode was enabled] and +** if both filenames compare equal using memcmp() +** after having been processed by the [sqlite3_vfs | xFullPathname] method of +** the VFS. +** */ int sqlite3_open( const char *filename, /* Database filename (UTF-8) */ |