We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35127b2 commit 09f99a4Copy full SHA for 09f99a4
src/sqlite3/connection.cr
@@ -12,7 +12,7 @@ class SQLite3::Connection < DB::Connection
12
params = HTTP::Params.parse(uri.query || "")
13
14
Options.new(
15
- filename: URI.decode_www_form((uri.host || "") + uri.path),
+ filename: URI.decode_www_form((uri.hostname || "") + uri.path),
16
# pragmas
17
busy_timeout: params.fetch("busy_timeout", default.busy_timeout),
18
cache_size: params.fetch("cache_size", default.cache_size),
@@ -56,7 +56,7 @@ class SQLite3::Connection < DB::Connection
56
end
57
58
def self.filename(uri : URI)
59
- URI.decode_www_form((uri.host || "") + uri.path)
+ URI.decode_www_form((uri.hostname || "") + uri.path)
60
61
62
def build_prepared_statement(query) : Statement
0 commit comments