@@ -74,15 +74,15 @@ def stmt_count
7474 it "should handle booleans" do
7575 stmt = @client . prepare ( 'SELECT ? AS `true`, ? AS `false`' )
7676 result = stmt . execute ( true , false )
77- expect ( result . to_a ) . to eq ( [ 'true' => 1 , 'false' => 0 ] )
77+ expect ( result . to_a ) . to eq ( [ { 'true' => 1 , 'false' => 0 } ] )
7878 end
7979
8080 it "should handle bignum but in int64_t" do
8181 stmt = @client . prepare ( 'SELECT ? AS max, ? AS min' )
8282 int64_max = ( 1 << 63 ) - 1
8383 int64_min = -( 1 << 63 )
8484 result = stmt . execute ( int64_max , int64_min )
85- expect ( result . to_a ) . to eq ( [ 'max' => int64_max , 'min' => int64_min ] )
85+ expect ( result . to_a ) . to eq ( [ { 'max' => int64_max , 'min' => int64_min } ] )
8686 end
8787
8888 it "should handle bignum but beyond int64_t" do
@@ -94,7 +94,7 @@ def stmt_count
9494 int64_min2 = -( 1 << 64 ) + 1
9595 int64_min3 = -0xC000000000000000
9696 result = stmt . execute ( int64_max1 , int64_max2 , int64_max3 , int64_min1 , int64_min2 , int64_min3 )
97- expect ( result . to_a ) . to eq ( [ 'max1' => int64_max1 , 'max2' => int64_max2 , 'max3' => int64_max3 , 'min1' => int64_min1 , 'min2' => int64_min2 , 'min3' => int64_min3 ] )
97+ expect ( result . to_a ) . to eq ( [ { 'max1' => int64_max1 , 'max2' => int64_max2 , 'max3' => int64_max3 , 'min1' => int64_min1 , 'min2' => int64_min2 , 'min3' => int64_min3 } ] )
9898 end
9999
100100 it "should accept keyword arguments on statement execute" do
0 commit comments