summaryrefslogtreecommitdiff
path: root/dev-db/mysql++/files/mysql++-3.2.3-mariadb-10.2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/mysql++/files/mysql++-3.2.3-mariadb-10.2.patch')
-rw-r--r--dev-db/mysql++/files/mysql++-3.2.3-mariadb-10.2.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-db/mysql++/files/mysql++-3.2.3-mariadb-10.2.patch b/dev-db/mysql++/files/mysql++-3.2.3-mariadb-10.2.patch
new file mode 100644
index 000000000000..ff814650e001
--- /dev/null
+++ b/dev-db/mysql++/files/mysql++-3.2.3-mariadb-10.2.patch
@@ -0,0 +1,29 @@
+--- a/lib/dbdriver.cpp
++++ b/lib/dbdriver.cpp
+@@ -257,7 +257,11 @@
+ }
+
+ if ((n == 1) &&
++#ifdef CLIENT_LONG_PASSWORD
+ (o >= CLIENT_LONG_PASSWORD) &&
++#else
++ (o >= CLIENT_MYSQL) &&
++#endif
+ #if MYSQL_VERSION_ID > 40000 // highest flag value varies by version
+ (o <= CLIENT_MULTI_RESULTS)
+ #else
+--- a/lib/common.h
++++ b/lib/common.h
+@@ -130,12 +130,6 @@
+ #define MYSQLPP_PATH_SEPARATOR '/'
+ #endif
+
+-#if defined(MYSQLPP_MYSQL_HEADERS_BURIED)
+-# include <mysql/mysql_version.h>
+-#else
+-# include <mysql_version.h>
+-#endif
+-
+ namespace mysqlpp {
+
+ /// \brief Alias for 'true', to make code requesting exceptions more