[CONCPP-20] CONCPP doesn't accept all parameters in the URL Created: 2020-07-01  Updated: 2020-08-03  Resolved: 2020-08-03

Status: Closed
Project: MariaDB Connector/C++
Component/s: General
Affects Version/s: N/A
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Anders Karlsson Assignee: Lawrin Novitsky
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS Linux 7.7



 Description   

Parameters passed in the URL when connecting are ignore, for example, this does not connect with TLS:

sql::Driver* driver = sql::mariadb::get_driver_instance();
sql::Properties p;
sql::Connection *conn;
 
conn = driver->connect("tcp://host?user=usr&password=pwd&useTls=true", p);

Whereas this does connect with TLS.

sql::Driver* driver = sql::mariadb::get_driver_instance();
sql::Properties p;
sql::Connection *conn;
 
p["useTls"] = "true";
 
conn = driver->connect("tcp://host?user=usr&password=pwd", p);



 Comments   
Comment by Lawrin Novitsky [ 2020-08-03 ]

Looks like setting parameters in connection string works . Even though it's not really supported in with legacy connstring format, but only in jdbc(i.e. jdbc+mariadb://)

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