summaryrefslogtreecommitdiff
path: root/sql/item_geofunc.cc
diff options
context:
space:
mode:
authormiguel@hegel.local <>2004-05-05 02:59:17 -0300
committermiguel@hegel.local <>2004-05-05 02:59:17 -0300
commit8d1480f7c5535edc80c69cf8998538f01b058c6d (patch)
treeacaa682ecb4e7413232120ad5965cc6adc2f410c /sql/item_geofunc.cc
parentee627d251062c455ccd57dac28497d896c721a0e (diff)
downloadmariadb-git-8d1480f7c5535edc80c69cf8998538f01b058c6d.tar.gz
Windows fixes for VC++ compiler compability
Diffstat (limited to 'sql/item_geofunc.cc')
-rw-r--r--sql/item_geofunc.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/item_geofunc.cc b/sql/item_geofunc.cc
index 555c1a74eaf..d95271a54bb 100644
--- a/sql/item_geofunc.cc
+++ b/sql/item_geofunc.cc
@@ -697,8 +697,7 @@ longlong Item_func_srid::val_int()
DBUG_ASSERT(fixed == 1);
String *swkb= args[0]->val_str(&value);
Geometry_buffer buffer;
- Geometry *geom;
-
+
null_value= (!swkb ||
!Geometry::create_from_wkb(&buffer,
swkb->ptr() + SRID_SIZE,