Commit 1f5fc7b7 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-27208: mtr --ps-protocol test fixup

The test ./mtr --ps-protocol main.func_math
was broken in commit 5b3ad94c
because in that mode, one of several truncation warnings for
a single integer literal would be omitted. Those warnings are
issued by the parser somewhere outside CRC32() or CRC32C().
parent 5b3ad94c
......@@ -1931,6 +1931,9 @@ x
Warnings:
Warning 1916 Got overflow when converting '' to DECIMAL. Value truncated
Warning 1916 Got overflow when converting '99999999999999999999999999999999999999999999999999999999999999999' to INT. Value truncated
select crc32(429496729656755555555555555555555555555555555555555555555555555555555555555555555555555,'a') as x;
x
3310005809
DROP TABLE IF EXISTS t;
Warnings:
Note 1051 Unknown table 'test.t'
......
......@@ -891,7 +891,12 @@ select crc32(1e100,''), hex(char(1e100));
select crc32(10.11,''), hex(char(10.11));
select crc32(-1,''), hex(char(-1));
select crc32('',''), hex(char(''));
--disable_ps_protocol
select crc32(429496729656755555555555555555555555555555555555555555555555555555555555555555555555555,'a') as x;
--enable_ps_protocol
--disable_warnings
select crc32(429496729656755555555555555555555555555555555555555555555555555555555555555555555555555,'a') as x;
--enable_warnings
# Test cases for using the function in aggregate functions, group-by, having
# and order-by clauses
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment