diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2015-06-22 23:33:35 +0500 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2015-06-22 23:33:35 +0500 |
commit | fb3e31203f74ec95c99e9ec4123debf67d8815e4 (patch) | |
tree | a56d6726febc35bd777f86f970daa3775a71e193 /sql/gcalc_tools.h | |
parent | 0357791e3c291c47fe128954dac45c271f721b2a (diff) | |
download | mariadb-git-fb3e31203f74ec95c99e9ec4123debf67d8815e4.tar.gz |
MDEV-7925 Inconsistent behavior of ST_Touches with a POINT as one of arguments.
Some cases of the feature's borders were treated incorrectly.
Diffstat (limited to 'sql/gcalc_tools.h')
-rw-r--r-- | sql/gcalc_tools.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/gcalc_tools.h b/sql/gcalc_tools.h index 12ee56732a2..9e9b580b359 100644 --- a/sql/gcalc_tools.h +++ b/sql/gcalc_tools.h @@ -82,6 +82,12 @@ public: shape_polygon= 2, shape_hole= 3 }; + enum count_result + { + result_false= 0, + result_true= 1, + result_unknown= 2 + }; Gcalc_function() : n_shapes(0) {} gcalc_shape_info add_new_shape(uint32 shape_id, shape_type shape_kind); /* @@ -116,6 +122,8 @@ public: int get_b_state(gcalc_shape_info shape) { return b_states[shape]; } int count() { return count_internal(function_buffer.ptr(), 0, 0); } + int count_last() + { return count_internal(function_buffer.ptr(), 1, 0); } void clear_i_states(); void clear_b_states(); void reset(); |