File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 34
34
end
35
35
end
36
36
37
- let ( :invalid_utf8 ) { " \xE5 \xC6 \x7D \x1F " }
37
+ let ( :invalid_utf8 ) { [ "e5c67d1f" ] . pack ( 'H*' ) . force_encoding ( Encoding :: UTF_8 ) }
38
38
let ( :bad_err ) do
39
39
begin
40
40
client . query ( invalid_utf8 )
Original file line number Diff line number Diff line change 61
61
62
62
it "should handle bignum but in int64_t" do
63
63
stmt = @client . prepare ( 'SELECT ? AS max, ? AS min' )
64
- int64_max = ( 1 << 63 ) - 1
64
+ int64_max = ( 1 << 63 ) - 1
65
65
int64_min = -( 1 << 63 )
66
66
result = stmt . execute ( int64_max , int64_min )
67
67
expect ( result . to_a ) . to eq ( [ 'max' => int64_max , 'min' => int64_min ] )
71
71
it "should handle bignum but beyond int64_t" do
72
72
stmt = @client . prepare ( 'SELECT ? AS max1, ? AS min1' )
73
73
int64_max1 = ( 1 << 63 )
74
- int64_min1 = -( 1 << 63 ) - 2
74
+ int64_min1 = -( 1 << 63 ) - 2
75
75
result = stmt . execute ( int64_max1 , int64_min1 )
76
76
expect ( result . to_a ) . to eq ( [ 'max1' => -1 , 'min1' => -1 ] )
77
77
@client . query 'DROP TABLE IF EXISTS mysql2_stmt_q'
You can’t perform that action at this time.
0 commit comments