mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix calculation for length of LPAD() and RPAD() reported to
client via mysql_fetch_fields(). (Bug #11311)
This commit is contained in:
@ -868,3 +868,18 @@ drop table t1;
|
||||
select hex(29223372036854775809), hex(-29223372036854775809);
|
||||
hex(29223372036854775809) hex(-29223372036854775809)
|
||||
FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF
|
||||
create table t1 (i int);
|
||||
insert into t1 values (1000000000),(1);
|
||||
select lpad(i, 7, ' ') as t from t1;
|
||||
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
|
||||
def t 253 7 7 Y 128 31 63
|
||||
t
|
||||
1000000
|
||||
1
|
||||
select rpad(i, 7, ' ') as t from t1;
|
||||
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
|
||||
def t 253 7 7 Y 128 31 63
|
||||
t
|
||||
1000000
|
||||
1
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user