mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-29552 LEFT and RIGHT with big value for parameter 'len' >0 return empty value in view
The code in max_length_for_string() erroneously returned 0 for huge numbers like 4294967295. Rewriting the code in a more straightforward way.
This commit is contained in:
@@ -5332,3 +5332,17 @@ DO OCT(-9223372036854775808);
|
||||
#
|
||||
# End of 10.5 tests
|
||||
#
|
||||
#
|
||||
# Start of 10.6 tests
|
||||
#
|
||||
#
|
||||
# MDEV-29552 LEFT and RIGHT with big value for parameter 'len' >0 return empty value in view
|
||||
#
|
||||
create view v1 as select left('hello', 4294967295);
|
||||
select * from v1;
|
||||
left('hello', 4294967295)
|
||||
hello
|
||||
drop view v1;
|
||||
#
|
||||
# End of 10.6 tests
|
||||
#
|
||||
|
Reference in New Issue
Block a user