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 3434 end
3535 end
3636
37- let ( :invalid_utf8 ) { " \xE5 \xC6 \x7D \x1F " }
37+ let ( :invalid_utf8 ) { [ "e5c67d1f" ] . pack ( 'H*' ) . force_encoding ( Encoding :: UTF_8 ) }
3838 let ( :bad_err ) do
3939 begin
4040 client . query ( invalid_utf8 )
Original file line number Diff line number Diff line change 6161
6262 it "should handle bignum but in int64_t" do
6363 stmt = @client . prepare ( 'SELECT ? AS max, ? AS min' )
64- int64_max = ( 1 << 63 ) - 1
64+ int64_max = ( 1 << 63 ) - 1
6565 int64_min = -( 1 << 63 )
6666 result = stmt . execute ( int64_max , int64_min )
6767 expect ( result . to_a ) . to eq ( [ 'max' => int64_max , 'min' => int64_min ] )
7171 it "should handle bignum but beyond int64_t" do
7272 stmt = @client . prepare ( 'SELECT ? AS max1, ? AS min1' )
7373 int64_max1 = ( 1 << 63 )
74- int64_min1 = -( 1 << 63 ) - 2
74+ int64_min1 = -( 1 << 63 ) - 2
7575 result = stmt . execute ( int64_max1 , int64_min1 )
7676 expect ( result . to_a ) . to eq ( [ 'max1' => -1 , 'min1' => -1 ] )
7777 @client . query 'DROP TABLE IF EXISTS mysql2_stmt_q'
You can’t perform that action at this time.
0 commit comments