Commit 815b4a84 authored by aivanov@mysql.com's avatar aivanov@mysql.com

Merge mysql.com:/home/alexi/mysql-4.1-bug1

into  mysql.com:/home/alexi/mysql-5.0
parents bfe8ba7d 09ae9fbe
......@@ -2163,6 +2163,9 @@ void Item_func_lpad::fix_length_and_dec()
{
ulonglong length= ((ulonglong) args[1]->val_int() *
collation.collation->mbmaxlen);
/*a comment before (merged) */
length= max((ulonglong)args[0]->max_length, length);
/*a comment after */
if (length >= MAX_BLOB_WIDTH)
{
length= MAX_BLOB_WIDTH;
......
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