fix: limit unsigned integer range. #1151#1216
Conversation
|
Thanks for the contribution! Please review the labels and make any necessary changes. |
[summary] tinyint: signed range is -128 to 127, unsigned range is 0 to 127. smallint: signed range is -32768 to 32767, unsigned range is 0 to 32767. mediumint: signed range is -8388608 to 8388607, unsigned range is 0 to 8388607. int/integer: signed range is -2147483647 to 2147483647, unsigned range is 0 to 2147483647. Note: -2147483648 is not allowed in tianmu engine currently. bigint: signed range is -9223372036854775806 to 9223372036854775807, unsigned range is 0 to 9223372036854775807. Note: -9223372036854775807 will be set to null and -9223372036854775808 will ret out of range.
3a61b96 to
d0efcbd
Compare
…file test unsigned, this will be opened after we completely support unsigned types stoneatom#1151
|
Please make a CR @RingsC @wisehead @lujiashun @isredstar. |
1f753c7 to
5dfe091
Compare
5dfe091 to
7b94e51
Compare
Codecov ReportBase: 43.30% // Head: 43.34% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## stonedb-5.7-dev #1216 +/- ##
===================================================
+ Coverage 43.30% 43.34% +0.03%
===================================================
Files 1830 1830
Lines 396111 396130 +19
===================================================
+ Hits 171535 171698 +163
+ Misses 224576 224432 -144
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
|
PTAL @lujiashun |
…ned_boundary_issue1151
Summary about this PR
tinyint: signed range is -128 to 127, unsigned range is 0 to 127.
smallint: signed range is -32768 to 32767, unsigned range is 0 to 32767.
mediumint: signed range is -8388608 to 8388607, unsigned range is 0 to 8388607.
int/integer: signed range is -2147483647 to 2147483647, unsigned range is 0 to 2147483647. Note: -2147483648 is not allowed in tianmu engine currently.
bigint: signed range is -9223372036854775806 to 9223372036854775807, unsigned range is 0 to 9223372036854775807.
Note: -9223372036854775807 will be set to null and -9223372036854775808 will ret out of range.
Issue Number: close #1151
Tests Check List
Changelog
Documentation