Skip to content

Commit ce647ff

Browse files
committed
Sqlite, fix connection no db test
1 parent 7a133a1 commit ce647ff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/arjdbc/sqlite3/adapter.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,14 @@ def jdbc_connection_class
861861
def initialize(...)
862862
super
863863

864+
@memory_database = false
865+
case @config[:database].to_s
866+
when ""
867+
raise ArgumentError, "No database file specified. Missing argument: database"
868+
when ":memory:"
869+
@memory_database = true
870+
end
871+
864872
# assign arjdbc extra connection params
865873
conn_params = build_connection_config(@config.compact)
866874

0 commit comments

Comments
 (0)