mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Fix calculation for length of LPAD() and RPAD() reported to
client via mysql_fetch_fields(). (Bug #11311)
This commit is contained in:
@ -611,3 +611,14 @@ drop table t1;
|
||||
# Bug #9854 hex() and out of range handling
|
||||
#
|
||||
select hex(29223372036854775809), hex(-29223372036854775809);
|
||||
|
||||
#
|
||||
# Bug #11311: Incorrect length returned from LPAD() and RPAD()
|
||||
#
|
||||
create table t1 (i int);
|
||||
insert into t1 values (1000000000),(1);
|
||||
--enable_metadata
|
||||
select lpad(i, 7, ' ') as t from t1;
|
||||
select rpad(i, 7, ' ') as t from t1;
|
||||
--disable_metadata
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user