fix charset (#736)

This commit is contained in:
yu34po
2022-02-09 10:47:02 +08:00
committed by GitHub
parent e5f59ea074
commit 21564ec61d
4 changed files with 36 additions and 2 deletions

View File

@ -4380,6 +4380,15 @@ BINARY opt_string_length_i_v2
$$->int32_values_[OB_NODE_CAST_C_LEN_IDX] = $2[0]; /* length */
$$->param_num_ = $2[1];
}
| CHARACTER opt_string_length_i_v2 CHARACTER SET charset_name
{
malloc_terminal_node($$, result->malloc_pool_, T_CAST_ARGUMENT);
$$->value_ = 0;
$$->int16_values_[OB_NODE_CAST_TYPE_IDX] = T_CHAR; /* data type */
$$->param_num_ = $2[1];
$$->str_value_ = $5->str_value_;
$$->str_len_ = $5->str_len_;
}
| cast_datetime_type_i opt_datetime_fsp_i
{
malloc_terminal_node($$, result->malloc_pool_, T_CAST_ARGUMENT);
@ -14577,4 +14586,4 @@ int obsql_mysql_fast_parse(ParseResult *p)
p->no_param_sql_[len] = '\0';
}
return ret;
}
}