[to #2024071000103619253]Remove the semicolon at the end of the dynamic SQL.

This commit is contained in:
obdev
2024-09-19 08:23:57 +00:00
committed by ob-robot
parent 7563ebd4bc
commit 70a5c4cf98

View File

@ -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(),