diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2015-06-25 13:16:27 +0500 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2015-06-25 13:16:27 +0500 |
commit | 9111ab7127f4e87220ca46a5f845b566c3633d69 (patch) | |
tree | 2a879f8d174d6afb7b53e9b09faa9de8a6800eaf /sql/item_geofunc.h | |
parent | 42bc08b347d2e4341952f4c7bcded7a15e1b4566 (diff) | |
download | mariadb-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.h | 12 |
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 |