diff options
author | drh <> | 2022-11-19 00:08:35 +0000 |
---|---|---|
committer | drh <> | 2022-11-19 00:08:35 +0000 |
commit | cf3107c7d47f3da737f2008f85965a4497d84314 (patch) | |
tree | 90dc13184d970e2b6f7335169cf8a45767d1e278 /src/memdb.c | |
parent | 26e0f2e916c2513dcee68e17642285c1d019e678 (diff) | |
download | sqlite-cf3107c7d47f3da737f2008f85965a4497d84314.tar.gz sqlite-cf3107c7d47f3da737f2008f85965a4497d84314.zip |
Databases created using sqlite3_deserialize() should report their filename
as an empty string, not as "x". Fix for ticket [53043c9793715f08].
FossilOrigin-Name: ff494449efd475878c549728cc22ee9b12d13674068781747fc042a0c1bd09c8
Diffstat (limited to 'src/memdb.c')
-rw-r--r-- | src/memdb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/memdb.c b/src/memdb.c index 31b2324b9..0aecb7102 100644 --- a/src/memdb.c +++ b/src/memdb.c @@ -857,6 +857,13 @@ end_deserialize: return rc; } +/* +** Return true if the VFS is the memvfs. +*/ +int sqlite3IsMemdb(const sqlite3_vfs *pVfs){ + return pVfs==&memdb_vfs; +} + /* ** This routine is called when the extension is loaded. ** Register the new VFS. |