fix some compatible bugs
This commit is contained in:
@ -1072,6 +1072,11 @@ int ObParser::parse(const ObString &query,
|
||||
}
|
||||
}
|
||||
|
||||
if (OB_SUCC(ret) && stmt.empty()) {
|
||||
ret = OB_ERR_EMPTY_QUERY;
|
||||
LOG_WARN("query is empty", K(ret));
|
||||
}
|
||||
|
||||
if (OB_SUCC(ret) && (parse_result.is_fp_ || parse_result.is_dynamic_sql_)) {
|
||||
int64_t new_length = parse_result.is_fp_ ? stmt.length() + 1 : stmt.length() * 2;
|
||||
char *buf = (char *)parse_malloc(new_length, parse_result.malloc_pool_);
|
||||
|
||||
@ -8900,6 +8900,10 @@ NAME_OB
|
||||
{
|
||||
malloc_non_terminal_node($$, result->malloc_pool_, T_LINK_NODE, 2, $1, $3);
|
||||
}
|
||||
| unreserved_keyword
|
||||
{
|
||||
get_non_reserved_node($$, result->malloc_pool_, @1.first_column, @1.last_column);
|
||||
}
|
||||
;
|
||||
|
||||
hint_option:
|
||||
|
||||
Reference in New Issue
Block a user