mysqlconnector: #i107391# default the protocol to TCP when talking with C/C
This commit is contained in:
12
mysqlcppconn/patches/default_to_protocol_tcp.patch
Normal file
12
mysqlcppconn/patches/default_to_protocol_tcp.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
--- misc/mysql-connector-cpp/driver/mysql_connection.cpp 2009-12-16 13:24:24.088933245 +0100
|
||||
+++ misc/build/mysql-connector-cpp/driver/mysql_connection.cpp 2009-12-16 13:24:15.666841004 +0100
|
||||
@@ -437,6 +437,9 @@
|
||||
throw sql::InvalidArgumentException(e.what());
|
||||
}
|
||||
|
||||
+ int default_protocol_tcp = MYSQL_PROTOCOL_TCP;
|
||||
+ proxy->options(MYSQL_OPT_PROTOCOL, (const char *) &default_protocol_tcp);
|
||||
+
|
||||
#ifndef _WIN32
|
||||
if (!hostName.compare(0, sizeof("unix://") - 1, "unix://")) {
|
||||
protocol_tcp = false;
|
Reference in New Issue
Block a user