Connector/C++ 1.0.2 Release Notes
The most recent Stable (GA) release of MariaDB Connector/C++ is:MariaDB Connector/C++ 1.1.6
Release date: 2022-10-11
This is a Stable (GA) release of MariaDB Connector/C++.
For a description of this library see theMariaDB Connector/C++ page.
MariaDB Connector/C++ is the interface between C++ applications and MariaDB Server. MariaDB Connector/C++ enables development of C++ applications using a JDBC-based API, which is also used by MariaDB Connector/J.
MariaDB Connector/C++ implements the MySQL protocol using the MariaDB Connector/C API. This release depends on MariaDB Connector/C 3.3.2.
Notable Changes
Added support of two optimized modes of
executeBatch/executeLargeBatchPreparedStatement methods execution: (CONCPP-106)rewriteBatchedStatementsconnection optionuseBulkStmtsconnection option
rewriteBatchedStatements
rewriteBatchedStatementsWhen using the
rewriteBatchedStatementsconnection option, forINSERTqueries the connector will construct a single query using batch parameter sets. For example:
INSERT INTO ab (i) VALUES (?) WITH first batch values = 1, second = 2will be rewritten as:
INSERT INTO ab (i) VALUES (1), (2)If the query cannot be rewritten in multi-values, the rewriteBatchedStatements connection option will use multi-queries. For example:
INSERT INTO ab(col1) VALUES (?) ON DUPLICATE KEY UPDATE col2=? WITH VALUES [1,2] AND [2,3]will be rewritten as:
INSERT INTO ab(col1) VALUES (1) ON DUPLICATE KEY UPDATE col2=2;INSERT INTO TABLE(col1) VALUES (3) ON DUPLICATE KEY UPDATE col2=4If the
rewriteBatchedStatementsconnection option is selected, the useServerPrepStmts option is set to false.If both
rewriteBatchedStatementsanduseBulkStmtsoptions are selected,rewriteBatchedStatementstakes precedence.
useBulkStmts
useBulkStmtsThe
useBulkStmtsconnection option uses the MariaDB bulk execution feature, so it requires MariaDB Server 10.2.7 or later.useBulkStmtswill be used even ifuseServerPrepStmtsis not set, in other words, if the default statement prepare method is client-side prepare.If both
useBulkStmtsandrewriteBatchedStatementsoptions are selected,rewriteBatchedStatementstakes precedence.
Issues Fixed
Attempting connections from multiple threads causes the connector to crash. (CONCPP-105)
PreparedStatement
setDoubleonly processes the first 6 significant digits and zeros any additional digits. (CONCPP-96)Result-set streaming is not supported in this release series, but setting
setFetchSizedoes not throw an exception and can cause the application to crash.Starting with this release, setting
setFetchSizewill throwSQLFeatureNotImplementedExceptionat the attempt to setfetch size >0(CONCPP-107)
Installation
This page is: Copyright © 2025 MariaDB. All rights reserved.
Last updated
Was this helpful?

