From 883200d1927f74baadc7eb14293d1a9fb4e517ce Mon Sep 17 00:00:00 2001 From: Adriano dos Santos Fernandes Date: Fri, 6 Sep 2024 07:25:51 -0300 Subject: [PATCH] Do not re-prepare statements when execute DDL in ISQL. --- src/isql/isql.epp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/isql/isql.epp b/src/isql/isql.epp index 1681414f6a..266aa0f3e1 100644 --- a/src/isql/isql.epp +++ b/src/isql/isql.epp @@ -9110,7 +9110,7 @@ static processing_state process_statement(const std::string& str) (statement_type == isc_info_sql_stmt_ddl || statement_type == isc_info_sql_stmt_set_generator)) { - DB->execute(fbStatus, D__trans, 0, str.c_str(), isqlGlob.SQL_dialect, NULL, NULL, NULL, NULL); + global_Stmt->execute(fbStatus, D__trans, nullptr, nullptr, nullptr, nullptr); setValues.StmtTimeout = 0; if (ISQL_errmsg(fbStatus)) {