summaryrefslogtreecommitdiff
path: root/sql/item_geofunc.cc
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2004-07-21 19:10:37 +0500
committerunknown <hf@deer.(none)>2004-07-21 19:10:37 +0500
commitc5fc0d433ab28d4309297875092888c920dcde3f (patch)
treee760e781ebd9feba1f0e8c01f34971bd6e703d70 /sql/item_geofunc.cc
parentbf95f9195fe431841fe1e29e6b82c9f47ec52ad3 (diff)
parent58bdba5785313f89398231f796ba989a4de81a69 (diff)
downloadmariadb-git-c5fc0d433ab28d4309297875092888c920dcde3f.tar.gz
Merging
mysql-test/r/func_str.result: Auto merged sql/item_geofunc.cc: Auto merged sql/item_strfunc.cc: Auto merged
Diffstat (limited to 'sql/item_geofunc.cc')
-rw-r--r--sql/item_geofunc.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/item_geofunc.cc b/sql/item_geofunc.cc
index 66a223f0ebf..00553737a21 100644
--- a/sql/item_geofunc.cc
+++ b/sql/item_geofunc.cc
@@ -446,7 +446,12 @@ String *Item_func_spatial_collection::val_str(String *str)
}
}
if (str->length() > current_thd->variables.max_allowed_packet)
+ {
+ push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_WARN,
+ ER_WARN_ALLOWED_PACKET_OVERFLOWED,
+ ER(ER_WARN_ALLOWED_PACKET_OVERFLOWED), func_name());
goto err;
+ }
null_value = 0;
return str;