> 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/2.3/2.3.0.md).

# Connector/C 2.3.0 Release notes

Release notes for MariaDB Connector/C 2.3.0, a Stable (GA) release published 1 July 2016.

{% hint style="info" %}

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

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

[Download](https://downloads.mariadb.org/connector-c/2.3.0)[Release Notes](/docs/release-notes/connectors/c/2.3/2.3.0.md)[Changelog](/docs/release-notes/connectors/c/changelogs/2.3/2.3.0.md)[About MariaDB Connector/C](/docs/connectors/mariadb-connector-c.md)

**Release date:** 1 Jul 2016

This is a [***Stable***](/docs/release-notes/community-server/about/release-criteria.md) ***(GA)*** release of the MariaDB\
Connector/C, formerly known as MariaDB Client Library for C.

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

## New features

New option `MARIADB_OPT_VERIFY_LOCAL_INFILE_CALLBACK` which allows the verification of filename and directory for `LOAD DATA LOCAL INFILE` calls.

The option must be set via mysql\_optionsv call:

```c
mysql_optionsv(mysql, MARIADB_OPT_VERIFY_LOCAL_INFILE_CALLBACK, my_verify_function, data);
```

The registered callback function has the following format

```c
int my_verify_function(void *data, const char *filename)
```

It returns 0 on success, non zero for error.

For a complete example check `test_local_infile_callback` in `misc.c`

## Notable Bug fixes

* In case getaddrinfo() returns an error, we return the WSA Error code instead of gai error. (For more information please read [ms738520(v=vs.85).aspx](https://msdn.microsoft.com/en-us/library/windows/desktop/ms738520\(v=vs.85\).aspx))
* Fixed numeric precision in prepared statements when converting float and double values to strings
* When connecting via TLS socket is now set to non blocking. If SSL\_get\_error returns WANT\_READ/WANT\_WRITE SSL\_connect will be called again until connect timeout seconds passed.
* Fixed behaviour of getaddrinfo: If getaddrinfo returns EAI\_AGAIN getaddrinfo will be called again until connect timeout seconds passed. If no connect timeout was specified, a default value of 30 seconds will be used.
* Removed LONGLONG\_MIN/MAX definition from config-win.h as they are also defined in my\_global
* Fix for windows build: replace SIZEOF\_CHARP with sizeof(char \*)
* [CONC-190](https://jira.mariadb.org/browse/CONC-190): Don't use verify callback in global context, since it may cause bad/unexpected behaviour in threaded issues. Instead now verification of peer certificate will be processed by the OpenSSL library itself.
* Fixed possible memory overrun in my\_strdup\_root
* [CONC-177](https://jira.mariadb.org/browse/CONC-177): fixed zerofill issues (converting numeric to string)

## Changelog

For a list of changes made in this release, with links to detailed information on each push, see the [changelog](/docs/release-notes/connectors/c/changelogs/2.3/2.3.0.md).

{% hint style="info" %}
Be notified of new MariaDB Server releases automatically by [subscribing](https://lists.mariadb.org/postorius/lists/announce.lists.mariadb.org/) to the MariaDB Foundation community announce 'at' lists.mariadb.org announcement list (this is a low traffic, announce-only list). MariaDB plc customers will be notified for all new releases, security issues and critical bug fixes for all MariaDB plc products thanks to the Notification Services.

MariaDB may already be included in your favorite OS distribution. More information can be found on the [Distributions which Include MariaDB](/docs/general-resources/distributions-including-mariadb.md) page.
{% endhint %}

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

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