summaryrefslogtreecommitdiff
path: root/sql/item_geofunc.cc
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2017-10-11 11:57:26 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2017-10-11 11:57:26 +0400
commitfe0d2e1a2b8069b0d8f0560aacb2cc9543b3951b (patch)
tree65f56f1063823ec278768ed0c77c9993367c45e6 /sql/item_geofunc.cc
parentdd85ec6f28b9b5f94188e4a1b907e3a17d6b647c (diff)
downloadmariadb-git-fe0d2e1a2b8069b0d8f0560aacb2cc9543b3951b.tar.gz
MDEV-13923 Assertion `!is_set() || (m_status == DA_OK_BULK &&
is_bulk_op())' failed upon altering table with geometry field. Check for the validity of the DEFAULT value for the geometry field.
Diffstat (limited to 'sql/item_geofunc.cc')
-rw-r--r--sql/item_geofunc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_geofunc.cc b/sql/item_geofunc.cc
index a271e481814..1fa6b52cf96 100644
--- a/sql/item_geofunc.cc
+++ b/sql/item_geofunc.cc
@@ -75,9 +75,9 @@ String *Item_func_geometry_from_text::val_str(String *str)
srid= (uint32)args[1]->val_int();
str->set_charset(&my_charset_bin);
+ str->length(0);
if (str->reserve(SRID_SIZE, 512))
return 0;
- str->length(0);
str->q_append(srid);
if ((null_value= !Geometry::create_from_wkt(&buffer, &trs, str, 0)))
return 0;