Use :memory: for an in-memory database

Using an empty string for the same purpose only started working in some
recent-ish Qt/sqlite/? version, so using --version failed on Ubuntu Trusty.
This commit is contained in:
Florian Bruhin 2017-06-19 09:14:03 +02:00 committed by Ryan Roden-Corrent
parent 051d2665f3
commit 9f94f28181

View File

@ -85,7 +85,7 @@ def run(args):
if args.version:
# we need to init sql to print the sql version
# we can use an in-memory database as we just want to query the version
sql.init('')
sql.init(':memory:')
print(version.version())
sys.exit(usertypes.Exit.ok)