summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.cc
diff options
context:
space:
mode:
authorserg@serg.mylan <>2003-10-12 15:16:45 +0200
committerserg@serg.mylan <>2003-10-12 15:16:45 +0200
commit32fed1e8774fa16e15f13e61f6594cdd69a2faa1 (patch)
treeb2e6caac84f47ab3a2646ad476043f5d6e6fdde5 /sql/item_strfunc.cc
parent54533936b1f0c03ad73a3b47f8c4fa5fb48b4178 (diff)
downloadmariadb-git-32fed1e8774fa16e15f13e61f6594cdd69a2faa1.tar.gz
wrong ER_TOO_BIG_FOR_UNCOMPRESS error in UNCOMPRESS() fixed.
typo in error message text corrected. new tests added
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r--sql/item_strfunc.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc
index c8ee64dc707..55a20908894 100644
--- a/sql/item_strfunc.cc
+++ b/sql/item_strfunc.cc
@@ -2609,11 +2609,12 @@ String *Item_func_uncompress::val_str(String *str)
int err= Z_OK;
uint code;
- if (new_size > MAX_BLOB_WIDTH)
+ if (new_size > current_thd->variables.max_allowed_packet)
{
push_warning_printf(current_thd,MYSQL_ERROR::WARN_LEVEL_ERROR,
ER_TOO_BIG_FOR_UNCOMPRESS,
- ER(ER_TOO_BIG_FOR_UNCOMPRESS),MAX_BLOB_WIDTH);
+ ER(ER_TOO_BIG_FOR_UNCOMPRESS),
+ current_thd->variables.max_allowed_packet);
null_value= 0;
return 0;
}