Skip to content

Commit

Permalink
fix(tianmu):limit min signed int64 value to -9223372036854775807,The …
Browse files Browse the repository at this point in the history
…failure of mtr operation caused by missing the update logic
  • Loading branch information
konghaiya committed Mar 8, 2023
1 parent e04f9f3 commit 493ec90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mysql-test/suite/tianmu/r/unsigned_type.result
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ UPDATE j1 SET CUTINYINT=253;
UPDATE j1 SET CUSMALLINT=65533;
UPDATE j1 SET CUINTEGER=4294967293;
UPDATE j1 SET CUBIGINT=18446744073709551613;
ERROR 22003: Out of range[0, 9223372036854775807] for column 'CUBIGINT' value: 18446744073709551613
UPDATE j1 SET CTINYINT=-127 where j1_key=2;
UPDATE j1 SET CTINYINT=0 where j1_key=3;
UPDATE j1 SET CTINYINT=null where j1_key=4;
Expand Down Expand Up @@ -60,7 +61,7 @@ LN(CUINTEGER)
22.180709777219757
SELECT LN(CUBIGINT) FROM j1 WHERE j1_key=1;
LN(CUBIGINT)
44.3614195558365
NULL
SELECT LOG(CUTINYINT) FROM j1 WHERE j1_key=1;
LOG(CUTINYINT)
5.53338948872752
Expand All @@ -72,7 +73,7 @@ LOG(CUINTEGER)
22.180709777219757
SELECT LOG(CUBIGINT) FROM j1 WHERE j1_key=1;
LOG(CUBIGINT)
44.3614195558365
NULL
SELECT LOG2(CUTINYINT) FROM j1 WHERE j1_key=1;
LOG2(CUTINYINT)
7.98299357469431
Expand All @@ -84,7 +85,7 @@ LOG2(CUINTEGER)
31.99999999899229
SELECT LOG2(CUBIGINT) FROM j1 WHERE j1_key=1;
LOG2(CUBIGINT)
64
NULL
SELECT LN(CTINYINT) FROM j1 WHERE j1_key=2;
LN(CTINYINT)
NULL
Expand Down
1 change: 1 addition & 0 deletions mysql-test/suite/tianmu/t/unsigned_type.test
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ ALTER TABLE j1 ADD COLUMN CUBIGINT BIGINT UNSIGNED;
UPDATE j1 SET CUTINYINT=253;
UPDATE j1 SET CUSMALLINT=65533;
UPDATE j1 SET CUINTEGER=4294967293;
--error 1264
UPDATE j1 SET CUBIGINT=18446744073709551613;
UPDATE j1 SET CTINYINT=-127 where j1_key=2;
UPDATE j1 SET CTINYINT=0 where j1_key=3;
Expand Down

0 comments on commit 493ec90

Please sign in to comment.