mirror of
https://gitea.invidious.io/iv-org/shard-crystal-sqlite3.git
synced 2024-08-15 00:53:26 +00:00
Upgrade to Crystal v0.30.0
This commit is contained in:
parent
058c78f837
commit
5303492839
1 changed files with 5 additions and 1 deletions
|
@ -9,7 +9,11 @@ class SQLite3::Connection < DB::Connection
|
|||
end
|
||||
|
||||
def self.filename(uri : URI)
|
||||
URI.unescape((uri.host || "") + uri.path)
|
||||
{% if compare_versions(Crystal::VERSION, "0.30.0-0") >= 0 %}
|
||||
URI.decode_www_form((uri.host || "") + uri.path)
|
||||
{% else %}
|
||||
URI.unescape((uri.host || "") + uri.path)
|
||||
{% end %}
|
||||
end
|
||||
|
||||
def build_prepared_statement(query) : Statement
|
||||
|
|
Loading…
Reference in a new issue