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

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