mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
mysqlxx: removed MYSQL_OPT_READ_TIMEOUT [#CONV-2647].
This commit is contained in:
parent
40c8f1e85e
commit
d4ac9fe904
@ -43,8 +43,7 @@ void Connection::connect(const char* db,
|
||||
|
||||
/// Установим таймауты
|
||||
unsigned int timeout = MYSQLXX_TIMEOUT;
|
||||
if (mysql_options(&driver, MYSQL_OPT_CONNECT_TIMEOUT, reinterpret_cast<const char *>(&timeout))
|
||||
|| mysql_options(&driver, MYSQL_OPT_READ_TIMEOUT, reinterpret_cast<const char *>(&timeout)))
|
||||
if (mysql_options(&driver, MYSQL_OPT_CONNECT_TIMEOUT, reinterpret_cast<const char *>(&timeout)))
|
||||
throw ConnectionFailed(mysql_error(&driver), mysql_errno(&driver));
|
||||
|
||||
if (!mysql_real_connect(&driver, server, user, password, db, port, NULL, driver.client_flag))
|
||||
|
Loading…
Reference in New Issue
Block a user