mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-35416 CONV(1<<63, 10, -2) fails with --view-protocol
Item_func_conv::fix_length_and_dec() incorrectly set maximum length as 64 character. But for negative numbers it can return up to 65 charcters (including the sign).
This commit is contained in:
@@ -2439,6 +2439,14 @@ DROP TABLE t0;
|
||||
SELECT CONV(-29223372036854775809, -10, 18446744073709551614);
|
||||
SELECT CONV(1<<63, 10, -2);
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-35416 CONV(1<<63, 10, -2) fails with --view-protocol
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1 AS SELECT CONV(1<<63, 10, -2) AS c1;
|
||||
SHOW CREATE TABLE t1;
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo #
|
||||
--echo # End of 10.6 tests
|
||||
--echo #
|
||||
|
Reference in New Issue
Block a user