diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-09-30 11:17:19 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-09-30 11:17:19 +0400 |
commit | aa582dedcbd22182e06355b94d1de4fc62f71910 (patch) | |
tree | 647fdbdaba6cc1baad1ea133fb7590cb30904d0d /sql/item_func.cc | |
parent | ca38b93e354baa5bbcaea00543dc1a99940072e4 (diff) | |
download | mariadb-git-aa582dedcbd22182e06355b94d1de4fc62f71910.tar.gz |
MDEV-13966 Parameter data type control for Item_temporal_func
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r-- | sql/item_func.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc index 5157c01348e..7db5e3bccc7 100644 --- a/sql/item_func.cc +++ b/sql/item_func.cc @@ -244,6 +244,19 @@ bool Item_func::check_argument_types_can_return_date(uint start, } +bool Item_func::check_argument_types_can_return_time(uint start, + uint end) const +{ + for (uint i= start; i < end ; i++) + { + DBUG_ASSERT(i < arg_count); + if (args[i]->check_type_can_return_time(func_name())) + return true; + } + return false; +} + + bool Item_func::check_argument_types_scalar(uint start, uint end) const { for (uint i= start; i < end; i++) |