update Slice(UInt8) to Bytes

This commit is contained in:
Brian J. Cardiff 2016-06-22 14:10:09 -03:00
parent 11e24e1c65
commit 8025ecaa13
5 changed files with 17 additions and 17 deletions

View file

@ -70,7 +70,7 @@ module DB
# Types supported to interface with database driver.
# These can be used in any `ResultSet#read` or any `Database#query` related
# method to be used as query parameters
TYPES = [Nil, String, Int32, Int64, Float32, Float64, Slice(UInt8)]
TYPES = [Nil, String, Int32, Int64, Float32, Float64, Bytes]
# See `DB::TYPES` in `DB`. `Any` is a union of all types in `DB::TYPES`
{% begin %}

View file

@ -57,8 +57,8 @@ module DB
return rs.read?(Float32)
when Float64.class
return rs.read?(Float64)
when Slice(UInt8).class
return rs.read?(Slice(UInt8))
when Bytes.class
return rs.read?(Bytes)
when Nil.class
return rs.read?(Int32)
else