From 0e68a951df4c29a38d3be4824641d5f2d7241feb Mon Sep 17 00:00:00 2001 From: Tan Huynh Date: Sun, 8 Sep 2019 23:12:26 +0700 Subject: [PATCH] Fix spec: Mariadb required number to be big enough to be bigint --- spec/mysql2/result_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/mysql2/result_spec.rb b/spec/mysql2/result_spec.rb index 321756f19..12ee6b616 100644 --- a/spec/mysql2/result_spec.rb +++ b/spec/mysql2/result_spec.rb @@ -169,8 +169,8 @@ end it "should return an array of field types in proper order" do - result = @client.query "SELECT cast('a' as char), cast(1 as unsigned), cast(1.2 as decimal(15, 2))" - expect(result.field_types).to eql(%w[varchar(1) bigint(1) decimal(15,2)]) + result = @client.query "SELECT cast('a' as char), cast('9223372036854775808' as unsigned), cast(1.2 as decimal(15, 2))" + expect(result.field_types).to eql(%w[varchar(1) bigint(19) decimal(15,2)]) end end