Updated to Crystal 0.8.0

This commit is contained in:
Ary Borenszweig 2015-09-21 14:54:28 -03:00
parent 3125ad0191
commit 5ab80b9f36
2 changed files with 14 additions and 14 deletions

View file

@ -46,7 +46,7 @@ describe Database do
it "executes with bind blob" do
ary = UInt8[0x53, 0x51, 0x4C, 0x69, 0x74, 0x65]
rows = with_db(&.execute(%(select cast(? as BLOB)), Slice.new(ary.buffer, ary.length)))
rows = with_db(&.execute(%(select cast(? as BLOB)), Slice.new(ary.buffer, ary.size)))
row = rows[0]
cell = row[0] as Slice(UInt8)
cell.to_a.should eq(ary)