summaryrefslogtreecommitdiff
path: root/sql/gcalc_tools.h
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2015-06-22 23:33:35 +0500
committerAlexey Botchkov <holyfoot@askmonty.org>2015-06-22 23:33:35 +0500
commitfb3e31203f74ec95c99e9ec4123debf67d8815e4 (patch)
treea56d6726febc35bd777f86f970daa3775a71e193 /sql/gcalc_tools.h
parent0357791e3c291c47fe128954dac45c271f721b2a (diff)
downloadmariadb-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.h8
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();