> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/release-notes/connectors/c++/1.0/1.0.2.md).

# Connector/C++ 1.0.2 Release Notes

Release notes for MariaDB Connector/C++ 1.0.2, a Stable (GA) release published 11 October 2022.

{% hint style="info" %}

<p align="center">The most recent release of <a href="/docs/connectors/mariadb-connector-cpp.md">MariaDB Connector/C++</a> is: <a href="/docs/release-notes/connectors/c++/1.1/1.1.9.md"><strong>1.1.9</strong></a></p>

<p align="center"><a href="https://mariadb.com/downloads/connectors/connectors-data-access/cpp-connector" class="button primary">Download Connector/C++ 1.1.9</a></p>
{% endhint %}

<a href="https://mariadb.com/downloads/connectors/connectors-data-access/cpp-connector" class="button primary">Download</a> <a href="/docs/release-notes/connectors/c++/1.0/1.0.2.md" class="button secondary">Release Notes</a> <a href="/docs/release-notes/connectors/c++/changelogs/1.0/1.0.2.md" class="button secondary">Changelog</a> <a href="/docs/connectors/mariadb-connector-cpp.md" class="button secondary">About MariaDB Connector/C++</a>

**Release date:** 2022-10-11

This is a [***Stable (GA)***](/docs/release-notes/community-server/about/release-criteria.md) release of MariaDB Connector/C++.

**For a description of this library see the**[**MariaDB Connector/C++**](/docs/connectors/mariadb-connector-cpp.md) **page.**

[MariaDB Connector/C++](/docs/connectors/mariadb-connector-cpp.md) 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/executeLargeBatch` PreparedStatement methods execution: ([CONCPP-106](https://jira.mariadb.org/browse/CONCPP-106))
  * `rewriteBatchedStatements` connection option
  * `useBulkStmts` connection option

### `rewriteBatchedStatements`

* When using the `rewriteBatchedStatements` connection option, for `INSERT` queries the connector will construct a single query using batch parameter sets. For example:

```sql
INSERT INTO ab (i) VALUES (?) WITH first batch values = 1, second = 2
```

will be rewritten as:

```sql
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:

```sql
INSERT INTO ab(col1) VALUES (?) ON DUPLICATE KEY UPDATE col2=? WITH VALUES [1,2] AND [2,3]
```

will be rewritten as:

```sql
INSERT INTO ab(col1) VALUES (1) ON DUPLICATE KEY UPDATE col2=2;INSERT INTO TABLE(col1) VALUES (3) ON DUPLICATE KEY UPDATE col2=4
```

* If the `rewriteBatchedStatements` connection option is selected, the useServerPrepStmts option is set to false.
* If both `rewriteBatchedStatements` and `useBulkStmts` options are selected, `rewriteBatchedStatements` takes precedence.

### `useBulkStmts`

* The `useBulkStmts` connection option uses the MariaDB bulk execution feature, so it requires MariaDB Server 10.2.7 or later. `useBulkStmts` will be used even if `useServerPrepStmts` is not set, in other words, if the default statement prepare method is client-side prepare.
* If both `useBulkStmts` and `rewriteBatchedStatements` options are selected, `rewriteBatchedStatements` takes precedence.

## Issues Fixed

* Attempting connections from multiple threads causes the connector to crash. ([CONCPP-105](https://jira.mariadb.org/browse/CONCPP-105))
* PreparedStatement `setDouble` only processes the first 6 significant digits and zeros any additional digits. ([CONCPP-96](https://jira.mariadb.org/browse/CONCPP-96))
* Result-set streaming is not supported in this release series, but setting `setFetchSize` does not throw an exception and can cause the application to crash.
  * Starting with this release, setting `setFetchSize` will throw `SQLFeatureNotImplementedException` at the attempt to set `fetch size >0` ([CONCPP-107](https://jira.mariadb.org/browse/CONCPP-107))

## Installation

[Install MariaDB Connector/C++](/docs/connectors/mariadb-connector-cpp/install-mariadb-connector-cpp.md)

<sub>*This page is: Copyright © 2026 MariaDB. All rights reserved.*</sub>

{% @marketo/form formid="4316" formId="4316" %}
