From 2d26a3ff750aba129562702ce48c8440dd4f2d17 Mon Sep 17 00:00:00 2001 From: Rahim Kanji Date: Thu, 25 Jul 2024 12:20:17 +0500 Subject: [PATCH] Removed few placeholder code --- include/PgSQL_Connection.h | 2 -- lib/PgSQL_Connection.cpp | 11 ----------- 2 files changed, 13 deletions(-) diff --git a/include/PgSQL_Connection.h b/include/PgSQL_Connection.h index 379a59990..cb00ab2bf 100644 --- a/include/PgSQL_Connection.h +++ b/include/PgSQL_Connection.h @@ -407,8 +407,6 @@ class PgSQL_Connection_Placeholder { void set_autocommit_cont(short event); void set_names_start(); void set_names_cont(short event); - void real_query_start(); - void real_query_cont(short event); #ifndef PROXYSQL_USE_RESULT void store_result_start(); void store_result_cont(short event); diff --git a/lib/PgSQL_Connection.cpp b/lib/PgSQL_Connection.cpp index 8da38724d..9b7378e4c 100644 --- a/lib/PgSQL_Connection.cpp +++ b/lib/PgSQL_Connection.cpp @@ -729,17 +729,6 @@ void PgSQL_Connection_Placeholder::set_query(char *stmt, unsigned long length) { } } -void PgSQL_Connection_Placeholder::real_query_start() { - PROXY_TRACE(); - async_exit_status = mysql_real_query_start(&interr , pgsql, query.ptr, query.length); -} - -void PgSQL_Connection_Placeholder::real_query_cont(short event) { - if (event == 0) return; - proxy_debug(PROXY_DEBUG_MYSQL_PROTOCOL, 6,"event=%d\n", event); - async_exit_status = mysql_real_query_cont(&interr ,pgsql , mysql_status(event, true)); -} - void PgSQL_Connection_Placeholder::stmt_prepare_start() { PROXY_TRACE(); query.stmt=mysql_stmt_init(pgsql);