From 7a03cafbb3747b5d752bf14517cdfdc933126708 Mon Sep 17 00:00:00 2001 From: Matej Kenda Date: Wed, 17 Dec 2025 23:11:19 +0100 Subject: [PATCH] fix(Data): Add using AbstractBinder::bind to prevent hidden virtual warning (#4900) --- Data/MySQL/include/Poco/Data/MySQL/Binder.h | 2 ++ Data/ODBC/include/Poco/Data/ODBC/Binder.h | 2 ++ Data/PostgreSQL/include/Poco/Data/PostgreSQL/Binder.h | 2 ++ Data/SQLite/include/Poco/Data/SQLite/Binder.h | 2 ++ 4 files changed, 8 insertions(+) diff --git a/Data/MySQL/include/Poco/Data/MySQL/Binder.h b/Data/MySQL/include/Poco/Data/MySQL/Binder.h index 82fa617ab..06e45ba69 100644 --- a/Data/MySQL/include/Poco/Data/MySQL/Binder.h +++ b/Data/MySQL/include/Poco/Data/MySQL/Binder.h @@ -34,6 +34,8 @@ class MySQL_API Binder: public Poco::Data::AbstractBinder /// Binds placeholders in the sql query to the provided values. Performs data types mapping. { public: + using AbstractBinder::bind; + typedef SharedPtr Ptr; Binder(); diff --git a/Data/ODBC/include/Poco/Data/ODBC/Binder.h b/Data/ODBC/include/Poco/Data/ODBC/Binder.h index 63552d773..c308c3163 100644 --- a/Data/ODBC/include/Poco/Data/ODBC/Binder.h +++ b/Data/ODBC/include/Poco/Data/ODBC/Binder.h @@ -57,6 +57,8 @@ class ODBC_API Binder: public Poco::Data::AbstractBinder /// Binds placeholders in the sql query to the provided values. Performs data types mapping. { public: + using AbstractBinder::bind; + typedef AbstractBinder::Direction Direction; typedef std::map ParamMap; diff --git a/Data/PostgreSQL/include/Poco/Data/PostgreSQL/Binder.h b/Data/PostgreSQL/include/Poco/Data/PostgreSQL/Binder.h index 1374f48ab..aec7782c1 100644 --- a/Data/PostgreSQL/include/Poco/Data/PostgreSQL/Binder.h +++ b/Data/PostgreSQL/include/Poco/Data/PostgreSQL/Binder.h @@ -38,6 +38,8 @@ class PostgreSQL_API Binder: public Poco::Data::AbstractBinder /// Allows data type mapping at statement execution time. { public: + using AbstractBinder::bind; + using Ptr = SharedPtr; Binder(); diff --git a/Data/SQLite/include/Poco/Data/SQLite/Binder.h b/Data/SQLite/include/Poco/Data/SQLite/Binder.h index ad444782a..5eb62bb67 100644 --- a/Data/SQLite/include/Poco/Data/SQLite/Binder.h +++ b/Data/SQLite/include/Poco/Data/SQLite/Binder.h @@ -35,6 +35,8 @@ class SQLite_API Binder: public Poco::Data::AbstractBinder /// Binds placeholders in the sql query to the provided values. Performs data types mapping. { public: + using AbstractBinder::bind; + Binder(sqlite3_stmt* pStmt); /// Creates the Binder.