diff options
author | Andrii Zavorotnii <andrii.zavorotnii@gmail.com> | 2019-09-23 14:50:49 -0700 |
---|---|---|
committer | Andrii Zavorotnii <andrii.zavorotnii@gmail.com> | 2019-09-23 14:56:04 -0700 |
commit | c4a8658099ed0e92fabcdcd47331dc6a1cebb1f5 (patch) | |
tree | 360bcfd97853f87051f3f69caecdd85afd8e5093 /sqlite3_libsqlite3.go | |
parent | Fix memory leak in ExpandedSQL (#738) (diff) | |
download | golite-c4a8658099ed0e92fabcdcd47331dc6a1cebb1f5.tar.gz golite-c4a8658099ed0e92fabcdcd47331dc6a1cebb1f5.tar.xz |
Fix Open() journal mode regression
[why]
see https://github.com/mattn/go-sqlite3/issues/607
SQLite default journal mode is DELETE, but forcing it on open causes "database is locked"
if other connection exists with WAL mode, for example.
[how]
Don't set DELETE mode if not set in DSN explicitly.
[testing]
Run tests in my project where WAL mode is used.
Diffstat (limited to 'sqlite3_libsqlite3.go')
0 files changed, 0 insertions, 0 deletions