summaryrefslogtreecommitdiff
path: root/sql/spatial.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/spatial.cc')
-rw-r--r--sql/spatial.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/spatial.cc b/sql/spatial.cc
index 5af1bec45ca..ca9615236e0 100644
--- a/sql/spatial.cc
+++ b/sql/spatial.cc
@@ -178,7 +178,9 @@ static double wkb_get_double(const char *ptr, Geometry::wkbByteOrder bo)
{
double res;
if (bo != Geometry::wkb_xdr)
+ {
float8get(res, ptr);
+ }
else
{
char inv_array[8];