On 20 Jul 2016, at 9:03am, Yihong Zhan <[email protected]> wrote:
> * std::string m_tmpFileName =
> "file:/NFS/some_dir/database?mode=memory&&cache=shared”;
> * int rv = sqlite3_open_v2(m_tmpFileName.c_str(), &m_sqlObj,
> SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_SHAREDCACHE |
> SQLITE_OPEN_URI, NULL);
Try it without the option:
* std::string m_tmpFileName = "file:/NFS/some_dir/database?mode=memory”;
* int rv = sqlite3_open_v2(m_tmpFileName.c_str(), &m_sqlObj,
SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_URI, NULL);
Also remove these options from all other connections and file specifications in
other programs running at the same time.
Are you using any PRAGMA commands ?
Simon.
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users