From d4ac9fe90416b1c302aa048c351955bae3e64fba Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 29 Jun 2011 19:59:20 +0000 Subject: [PATCH] mysqlxx: removed MYSQL_OPT_READ_TIMEOUT [#CONV-2647]. --- libs/libmysqlxx/src/Connection.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/libmysqlxx/src/Connection.cpp b/libs/libmysqlxx/src/Connection.cpp index dd45651cf2c..79d9d0a76e2 100644 --- a/libs/libmysqlxx/src/Connection.cpp +++ b/libs/libmysqlxx/src/Connection.cpp @@ -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(&timeout)) - || mysql_options(&driver, MYSQL_OPT_READ_TIMEOUT, reinterpret_cast(&timeout))) + if (mysql_options(&driver, MYSQL_OPT_CONNECT_TIMEOUT, reinterpret_cast(&timeout))) throw ConnectionFailed(mysql_error(&driver), mysql_errno(&driver)); if (!mysql_real_connect(&driver, server, user, password, db, port, NULL, driver.client_flag))