diff options
author | drh <drh@noemail.net> | 2017-12-14 19:24:00 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2017-12-14 19:24:00 +0000 |
commit | dd2a43a225a69a53bbdfe17eec319bbb85e674f9 (patch) | |
tree | 329b79693456aec1e9ec30239a65302625a02f2b /ext/misc/appendvfs.c | |
parent | 233ff96ec5beae1301731a3c0893f8cf358c86f0 (diff) | |
download | sqlite-dd2a43a225a69a53bbdfe17eec319bbb85e674f9.tar.gz sqlite-dd2a43a225a69a53bbdfe17eec319bbb85e674f9.zip |
Fixes to the appendvfs.c extension. Add the "sqltclsh" application that
uses appendvfs.c to find its scripts.
FossilOrigin-Name: ee248b529c2396c5480fb99b0a1dc31032627ec8241eca4a8c0fff257bb4a088
Diffstat (limited to 'ext/misc/appendvfs.c')
-rw-r--r-- | ext/misc/appendvfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/misc/appendvfs.c b/ext/misc/appendvfs.c index bd1f37509..c6e9e0d58 100644 --- a/ext/misc/appendvfs.c +++ b/ext/misc/appendvfs.c @@ -47,7 +47,9 @@ ** If the file being opened is not an appended database, then this shim is ** a pass-through into the default underlying VFS. **/ +#if !defined(SQLITEINT_H) #include <sqlite3ext.h> +#endif SQLITE_EXTENSION_INIT1 #include <string.h> #include <assert.h> @@ -458,6 +460,7 @@ static int apndOpen( } if( (flags & SQLITE_OPEN_CREATE)==0 ){ pSubFile->pMethods->xClose(pSubFile); + pFile->pMethods = 0; return SQLITE_CANTOPEN; } p->iPgOne = (sz+0xfff) & ~(sqlite3_int64)0xfff; |