[ODBC-229] Add parameters that correspond to MYSQL_READ_DEFAULT_FILE and MYSQL_READ_DEFAULT_GROUP options from MariaDB Connector/C Created: 2019-03-07 Updated: 2020-08-25 Resolved: 2019-03-19 |
|
| Status: | Closed |
| Project: | MariaDB Connector/ODBC |
| Component/s: | General |
| Affects Version/s: | 3.1.0, 3.0.8 |
| Fix Version/s: | 2.0.19, 3.0.9, 3.1.1 |
| Type: | Task | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Lawrin Novitsky |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||
| Description |
|
MariaDB Connector/C allows an application to read a MariaDB configuration file, and it also allows the application to specify the option group within the configuration file. The MYSQL_READ_DEFAULT_FILE and MYSQL_READ_DEFAULT_GROUP options are used for this: MYSQL_READ_DEFAULT_FILE:
MYSQL_READ_DEFAULT_GROUP:
https://mariadb.com/kb/en/library/mysql_optionsv/#options It might be useful if MariaDB Connector/ODBC allowed users to configure an ODBC data source to read options from a configuration file. |
| Comments |
| Comment by Lawrin Novitsky [ 2019-03-19 ] |
|
Wouldn't it be enough to do like mysql's connector does - the connection option enables or disables read from the default section([odbc]) of the default file(my.cnf). I'd do it this way |
| Comment by Geoff Montee (Inactive) [ 2019-03-19 ] |
|
Hi Lawrin, I personally like the flexibility to set the path to the configuration file, but it's probably enough for most users to read from the default my.cnf. Reading options from the [odbc] option group sounds good. It would also still read options from the default client option groups, right? e.g. [client], [client-server], [client-mariadb] |
| Comment by Lawrin Novitsky [ 2019-03-19 ] |
|
Pushed to odbc-3.0 as 21864d5 |
| Comment by Lawrin Novitsky [ 2019-03-19 ] |
|
It's not a problem at all to add options for file and section name, but I'd prefer to keep things simple in this case. Btw "default my.cnf" on Windows mean that that is either my.cnf or my.ini, which looked first in system dir, then in windows dir, then, iirc, in C:\, and then in the application directory |