Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
3.1.15
-
None
Description
In function MADB_DbcConnectDB, it tries to set MYSQL_OPT_CONNECT_TIMEOUT as Dsn->ConnectionTimeout, but ConnectionTimeout is never set in function MADB_DbcSetAttr.
if (Dsn->ConnectionTimeout) |
mysql_optionsv(Connection->mariadb, MYSQL_OPT_CONNECT_TIMEOUT, (const char *)&Dsn->ConnectionTimeout); |
This is how it's done in mysql-connector-odbc. It's using the login_timeout instead since it's one that's actually set in SQLSetConnectAttr.
if (login_timeout) |
mysql_options(mysql, MYSQL_OPT_CONNECT_TIMEOUT, (char *)&login_timeout); |
https://github.com/mysql/mysql-connector-odbc/blob/8.0.29/driver/connect.cc
Attachments
Issue Links
- duplicates
-
ODBC-377 Timeouts set via ODBC do nothing
- Closed