mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 15:45:33 +02:00
Merge mysql.com:/home/jimw/my/mysql-4.1-clean
into mysql.com:/home/jimw/my/mysql-5.0-clean mysql-test/r/create.result: Auto merged mysql-test/r/func_str.result: Auto merged mysql-test/t/func_str.test: Auto merged sql/item_strfunc.cc: Auto merged sql/sql_table.cc: Auto merged mysql-test/t/create.test: Resolve conflict sql/mysql_priv.h: Resolve conflict sql/table.cc: Resolve conflict sql/unireg.cc: Resolve conflict
This commit is contained in:
commit
6fd718dfbb
9 changed files with 65 additions and 19 deletions
|
|
@ -2076,7 +2076,6 @@ void Item_func_rpad::fix_length_and_dec()
|
|||
{
|
||||
ulonglong length= ((ulonglong) args[1]->val_int() *
|
||||
collation.collation->mbmaxlen);
|
||||
length= max((ulonglong) args[0]->max_length, length);
|
||||
if (length >= MAX_BLOB_WIDTH)
|
||||
{
|
||||
length= MAX_BLOB_WIDTH;
|
||||
|
|
@ -2164,7 +2163,6 @@ void Item_func_lpad::fix_length_and_dec()
|
|||
{
|
||||
ulonglong length= ((ulonglong) args[1]->val_int() *
|
||||
collation.collation->mbmaxlen);
|
||||
length= max((ulonglong) args[0]->max_length, length);
|
||||
if (length >= MAX_BLOB_WIDTH)
|
||||
{
|
||||
length= MAX_BLOB_WIDTH;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue