diff options
author | Alexander Barkov <bar@mariadb.com> | 2020-03-10 16:05:42 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2020-03-10 20:43:32 +0400 |
commit | e40858a7bdc65be4386a9e74262731fae964958b (patch) | |
tree | 184b48fea049e6e7ca4763480e6d6a7bd1ff9abd /sql/item_cmpfunc.cc | |
parent | 00749980acf617fbc26b5cdaff6e256a673dab76 (diff) | |
download | mariadb-git-e40858a7bdc65be4386a9e74262731fae964958b.tar.gz |
MDEV-17832 Protocol: extensions for Pluggable types and JSON, GEOMETRY
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r-- | sql/item_cmpfunc.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index 6df2b5dbd3a..7fe16848082 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -6481,6 +6481,21 @@ Item *Item_cond_and::neg_transformer(THD *thd) /* NOT(a AND b AND ...) -> */ } +bool +Item_cond_and::set_format_by_check_constraint( + Send_field_extended_metadata *to) const +{ + List_iterator_fast<Item> li(const_cast<List<Item>&>(list)); + Item *item; + while ((item= li++)) + { + if (item->set_format_by_check_constraint(to)) + return true; + } + return false; +} + + Item *Item_cond_or::neg_transformer(THD *thd) /* NOT(a OR b OR ...) -> */ /* NOT a AND NOT b AND ... */ { |