summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.h
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2017-08-11 00:50:29 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2017-08-11 00:50:29 +0400
commit79d28533549d15e848b342cf518ae4b409ba3e64 (patch)
treedefca6f922ea782facd0b36f5cec20e2fb4d0cc7 /sql/item_cmpfunc.h
parentbfffe571accb93c80066b070688e6712d4cb5643 (diff)
downloadmariadb-git-79d28533549d15e848b342cf518ae4b409ba3e64.tar.gz
MDEV-12604 Comparison of JSON_EXTRACT result differs with Mysql.
JSON_EXTRACT behaves specifically in the comparison, so we have to implement specific method for that in Arg_comparator.
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r--sql/item_cmpfunc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h
index 8ff789d983a..131062dab36 100644
--- a/sql/item_cmpfunc.h
+++ b/sql/item_cmpfunc.h
@@ -106,6 +106,12 @@ public:
int compare_e_datetime() { return compare_e_temporal(MYSQL_TYPE_DATETIME); }
int compare_time() { return compare_temporal(MYSQL_TYPE_TIME); }
int compare_e_time() { return compare_e_temporal(MYSQL_TYPE_TIME); }
+ int compare_json_str_basic(Item *j, Item *s);
+ int compare_json_str();
+ int compare_str_json();
+ int compare_e_json_str_basic(Item *j, Item *s);
+ int compare_e_json_str();
+ int compare_e_str_json();
Item** cache_converted_constant(THD *thd, Item **value, Item **cache,
Item_result type);