fix cases and add estimate block prefs

This commit is contained in:
wangt1xiuyi
2022-11-22 10:08:02 +00:00
committed by wangzelin.wzl
parent 2ca80bac91
commit 5282ebd584
8 changed files with 81 additions and 8 deletions

View File

@ -6486,6 +6486,7 @@ int ObRawExprResolverImpl::process_odbc_time_literals(const ObItemType dst_time_
tmp_node.num_child_ = 0;
tmp_node.str_len_ = time_str.length();
tmp_node.str_value_ = time_str.ptr();
tmp_node.is_date_unit_ = false;
if (OB_FAIL(process_datatype_or_questionmark(tmp_node, expr))) {
if (ret == OB_ERR_WRONG_VALUE) {//invalid time str, go back default way like Mysql.
ret = OB_SUCCESS;