fix some national string bug

This commit is contained in:
SevenJ-swj
2023-06-02 06:12:18 +00:00
committed by ob-robot
parent 157ecc38a3
commit bf02211328
3 changed files with 14 additions and 7 deletions

View File

@ -730,7 +730,7 @@ expr
{
$$ = $1;
/* every mysql's item(same as ob's expr) has its own name */
if (OB_UNLIKELY((NULL == $$->str_value_)) && $$->type_ != T_VARCHAR) {
if (OB_UNLIKELY((NULL == $$->str_value_)) && $$->type_ != T_NCHAR && $$->type_ != T_VARCHAR) {
dup_string($$, result, @1.first_column, @1.last_column);
}
}