Kaydet (Commit) 7b08032b authored tarafından Frank Schoenheit [fs]'s avatar Frank Schoenheit [fs]

mysqlconnector: #i107391# default the protocol to TCP when talking with C/C

üst 1523eb9c
......@@ -52,7 +52,9 @@ ADDITIONAL_FILES=\
CONVERTFILES=\
cppconn$/build_config.h
PATCH_FILES=$(TARFILE_NAME).patch
PATCH_FILES=\
$(TARFILE_NAME).patch \
patches/default_to_protocol_tcp.patch
BUILD_DIR=driver
BUILD_ACTION = \
......
--- 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;
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