Commit 2a06e8ee authored by Gábor Szalai's avatar Gábor Szalai
Browse files

MySQL backward compatibility update



Restored MySQL 5.0 support.

Change-Id: I16163ccca7be5f0b69295272b41ca2398d8f67a9
Signed-off-by: Gábor Szalai's avatarGabor Szalai <gabor.szalai@ericsson.com>
parent 8801c1ab
File mode changed from 100755 to 100644
......@@ -7,3 +7,8 @@
=== R6B
Added "connect_timeout" parameter to the MySQL connector
=== R6C
MySQL library backward compatibility update.
......@@ -134,7 +134,11 @@ int SQL_MySQL_engine::open_database_connection(const SQL_config_data* config_dat
log(SQLTP_LOG_DEBUG,"Auto-reconnect: %s", (auto_reconnect) ? auto_reconnect : "Not specified");
log(SQLTP_LOG_DEBUG,"Connect timeout: %u",conn_timeout);
mysql_options(&sql_handle, MYSQL_OPT_CONNECT_TIMEOUT, &conn_timeout);
mysql_options(&sql_handle, MYSQL_OPT_CONNECT_TIMEOUT,
#if MYSQL_VERSION_ID < 50500
(const char*)
#endif
&conn_timeout);
if(!mysql_real_connect(&sql_handle,host,user,passwd,db,port,unix_socket,client_flag)){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment