Skip to content

Commit

Permalink
Upgrade support to Crystal 0.35.1 (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian J. Cardiff authored Jun 19, 2020
1 parent b71523f commit bd62a9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mysql/read_packet.cr
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class MySql::ReadPacket < IO
raise DB::ConnectionLost.new(@connection)
end

{% if compare_versions(Crystal::VERSION, "0.35.0-0") >= 0 %}
{% if compare_versions(Crystal::VERSION, "0.35.0") == 0 %}
def write(slice) : Int64
raise "not implemented"
end
Expand Down
2 changes: 1 addition & 1 deletion src/mysql/write_packet.cr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class MySql::WritePacket < IO
raise "not implemented"
end

{% if compare_versions(Crystal::VERSION, "0.35.0-0") >= 0 %}
{% if compare_versions(Crystal::VERSION, "0.35.0") == 0 %}
def write(slice) : Int64
@io.write(slice)
rescue IO::EOFError
Expand Down

0 comments on commit bd62a9d

Please sign in to comment.