summaryrefslogtreecommitdiff
path: root/sql/item_geofunc.cc
diff options
context:
space:
mode:
authorholyfoot/hf@mysql.com/hfmain.(none) <>2007-11-13 10:51:47 +0400
committerholyfoot/hf@mysql.com/hfmain.(none) <>2007-11-13 10:51:47 +0400
commit7d111abf0eb9efbdc46d2924c0f27d078252e4f5 (patch)
tree7e2b4e01a21459d9a666cbdd1b2b399281a96c25 /sql/item_geofunc.cc
parent29ea825e574aaeb3ebd3e02b44a105b26da899ec (diff)
downloadmariadb-git-7d111abf0eb9efbdc46d2924c0f27d078252e4f5.tar.gz
Bug #31158 Spatial, Union, LONGBLOB vs BLOB bug (crops data)
max_length parameter for BLOB-returning functions must be big enough for any possible content. Otherwise the field created for a table will be too small.
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 6cb8c790319..7900396e5d8 100644
--- a/sql/item_geofunc.cc
+++ b/sql/item_geofunc.cc
@@ -29,7 +29,7 @@ void Item_geometry_func::fix_length_and_dec()
{
collation.set(&my_charset_bin);
decimals=0;
- max_length=MAX_BLOB_WIDTH;
+ max_length= max_field_size;
maybe_null= 1;
}