summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.cc
diff options
context:
space:
mode:
authorunknown <aivanov@mysql.com>2005-07-26 20:37:12 +0400
committerunknown <aivanov@mysql.com>2005-07-26 20:37:12 +0400
commit0d9ab525692ecc50c7c30cc4c365d3af6dcba29e (patch)
tree0bcae13086b9f2f25bbea3a4b560b3154ea1df33 /sql/item_strfunc.cc
parentbf45b6ba8477a9a910ec530c126569c208d5c0a1 (diff)
downloadmariadb-git-0d9ab525692ecc50c7c30cc4c365d3af6dcba29e.tar.gz
BUG# <no-such-number> : some fix
mysql-test/t/select.test: BUG# <no-such-number>
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r--sql/item_strfunc.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc
index 3a5ddd583ef..ebdde5481c8 100644
--- a/sql/item_strfunc.cc
+++ b/sql/item_strfunc.cc
@@ -2130,7 +2130,9 @@ 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);
+ /*a comment before */
+ length= max((ulonglong)args[0]->max_length, length);
+ /*a comment after */
if (length >= MAX_BLOB_WIDTH)
{
length= MAX_BLOB_WIDTH;