[to #2024071000103619253]Remove the semicolon at the end of the dynamic SQL.
This commit is contained in:
@ -2355,6 +2355,9 @@ int ObSPIService::calc_dynamic_sqlstr(
|
||||
ObCharsetType client_cs_type = CHARSET_INVALID;
|
||||
|
||||
OZ (result.get_string(tmp_sql));
|
||||
if (OB_SUCC(ret) && tmp_sql.length() > 1 && ';' == tmp_sql[tmp_sql.length() - 1]) {
|
||||
tmp_sql.assign_ptr(tmp_sql.ptr(), tmp_sql.length() - 1);
|
||||
}
|
||||
OZ (ctx->exec_ctx_->get_my_session()->get_character_set_client(client_cs_type));
|
||||
OZ (ObCharset::charset_convert(temp_allocator, tmp_sql,
|
||||
result.get_collation_type(),
|
||||
|
Reference in New Issue
Block a user