[CONC-274] Alternative mysql_real_connect_dsn() working with "connection_string" argument (same as Dsn in ODBC). Created: 2017-08-09 Updated: 2021-11-12 Resolved: 2021-11-12 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 3.3.0 |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Andrey Volk | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
MYSQL * mysql_real_connect_dsn(MYSQL * mysql, const char * connection_string) |
| Comments |
| Comment by Georg Richter [ 2017-08-22 ] | |
|
We shouldn't add a new API function, since mysql_real_connect supports connection plugins.
ODBC doesn't support several settings that needs to be set via mysql_options, so I would suggest to use the key-values from my.cnf (there can be additional aliases). | |
| Comment by Andrey Volk [ 2021-09-15 ] | |
|
@georg Please note `DNS` instead of `DSN` here CR_DNS_PARSE_ERROR and in a few other places. | |
| Comment by Andrey Volk [ 2021-09-15 ] | |
|
DNS instead of DSN? /* 5011 */ "DNS parse error (offset %d)", | |
| Comment by Sergei Golubchik [ 2021-09-20 ] | |
|
What was implemented:
| |
| Comment by Sergei Golubchik [ 2021-09-20 ] | |
|
questions:
| |
| Comment by Georg Richter [ 2021-11-12 ] | |
|
Added new macro mariadb_connect(). See |