From 5c023f20e376fbe8afd3f6397fa64fa4c8e87c9d Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Fri, 13 May 2011 17:48:30 +0000 Subject: [PATCH] mysqlxx: fixed error in prev. revision. --- libs/libmysqlxx/src/Connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/libmysqlxx/src/Connection.cpp b/libs/libmysqlxx/src/Connection.cpp index e6f6d61768a..76a490846d6 100644 --- a/libs/libmysqlxx/src/Connection.cpp +++ b/libs/libmysqlxx/src/Connection.cpp @@ -43,8 +43,8 @@ void Connection::connect(const char* db, /// Установим таймауты unsigned int timeout = MYSQLXX_TIMEOUT; - if (!mysql_options(&driver, MYSQL_OPT_CONNECT_TIMEOUT, &timeout) - || !mysql_options(&driver, MYSQL_OPT_READ_TIMEOUT, &timeout)) + if (!mysql_options(&driver, MYSQL_OPT_CONNECT_TIMEOUT, reinterpret_cast(&timeout)) + || !mysql_options(&driver, MYSQL_OPT_READ_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))