summaryrefslogtreecommitdiff
path: root/sql/item_geofunc.h
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2015-06-25 13:16:27 +0500
committerAlexey Botchkov <holyfoot@askmonty.org>2015-06-25 13:16:27 +0500
commit9111ab7127f4e87220ca46a5f845b566c3633d69 (patch)
tree2a879f8d174d6afb7b53e9b09faa9de8a6800eaf /sql/item_geofunc.h
parent42bc08b347d2e4341952f4c7bcded7a15e1b4566 (diff)
downloadmariadb-git-9111ab7127f4e87220ca46a5f845b566c3633d69.tar.gz
GIS-related tests started to fail as some related functions
don't return NULL-s anymore, and actually they're not BOOLEAN. Fixed.
Diffstat (limited to 'sql/item_geofunc.h')
-rw-r--r--sql/item_geofunc.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/sql/item_geofunc.h b/sql/item_geofunc.h
index 52713995c4f..c4cf683fa9a 100644
--- a/sql/item_geofunc.h
+++ b/sql/item_geofunc.h
@@ -415,24 +415,28 @@ public:
void fix_length_and_dec() { maybe_null= 1; }
};
-class Item_func_issimple: public Item_bool_func
+class Item_func_issimple: public Item_int_func
{
Gcalc_heap collector;
Gcalc_function func;
Gcalc_scan_iterator scan_it;
String tmp;
public:
- Item_func_issimple(Item *a): Item_bool_func(a) {}
+ Item_func_issimple(Item *a): Item_int_func(a) {}
longlong val_int();
const char *func_name() const { return "st_issimple"; }
+ void fix_length_and_dec() { decimals=0; max_length=2; }
+ uint decimal_precision() const { return 1; }
};
-class Item_func_isclosed: public Item_bool_func
+class Item_func_isclosed: public Item_int_func
{
public:
- Item_func_isclosed(Item *a): Item_bool_func(a) {}
+ Item_func_isclosed(Item *a): Item_int_func(a) {}
longlong val_int();
const char *func_name() const { return "st_isclosed"; }
+ void fix_length_and_dec() { decimals=0; max_length=2; }
+ uint decimal_precision() const { return 1; }
};
class Item_func_isring: public Item_func_issimple