File: mariadb_api.patch

package info (click to toggle)
mysql-connector-c%2B%2B 1.1.9-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,656 kB
  • sloc: cpp: 44,632; ansic: 2,114; php: 528; sql: 402; xml: 109; makefile: 12
file content (19 lines) | stat: -rw-r--r-- 759 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Last-Update: 2016-11-13
Forwarded: not-needed
Origin: https://packages.altlinux.org/en/Sisyphus/srpms/mysql-connector-c++/patches/mariadb_api.patch
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Description: fix FTBFS with MariaDB.

--- a/driver/nativeapi/libmysql_static_proxy.cpp
+++ b/driver/nativeapi/libmysql_static_proxy.cpp
@@ -318,9 +318,9 @@
 /* {{{ LibmysqlStaticProxy::get_option() */
 int
 LibmysqlStaticProxy::get_option(MYSQL * mysql, enum mysql_option option, const void *arg)
 {
-#if MYSQL_VERSION_ID >= 50703
+#if not defined MARIADB_BASE_VERSION && MYSQL_VERSION_ID >= 50703
 	if (::mysql_get_option(mysql, option, arg)) {
 		throw sql::InvalidArgumentException("Unsupported option provided to mysql_get_option()");
 	} else {
 		return 0;