[CONC-251] client section on ~/.my.cnf is not read by mysql_options() Created: 2017-04-24  Updated: 2017-09-26  Resolved: 2017-05-07

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 3.0.1, 2.3.2
Fix Version/s: 3.0.2

Type: Bug Priority: Major
Reporter: FLAESCH Sebastien Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None
Environment:

Linux Debian 8.6


Issue Links:
Relates
relates to MDEV-12246 Double-free crash in libmariadb.so: m... Closed
relates to MDEV-13100 Cannot read for custom config file wi... Closed

 Description   

It seems that the ~/.my.cnf file is not loaded when using for ex:

mysql_options(cn->dbcHandle, MYSQL_READ_DEFAULT_GROUP, "client")

My ~/.my.cnf file contains:

[client]
default-character-set="utf8"

This code works find with Oracle MySQL client 5.7 ...



 Comments   
Comment by Georg Richter [ 2017-05-07 ]

Fixed in C/C 3.0 - 99d054ebad0b7192e73ced4235efcd5328b10f32

Comment by FLAESCH Sebastien [ 2017-09-26 ]

Verified with 10.2.8

Generated at Thu Feb 08 03:03:58 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.