Upgrade to Crystal v0.30.0

This commit is contained in:
Brian J. Cardiff 2019-07-30 19:17:06 -03:00
parent 058c78f837
commit 5303492839
1 changed files with 5 additions and 1 deletions

View File

@ -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