summaryrefslogtreecommitdiff
path: root/databases/mysql-connector-odbc/files/patch-driver_handle.c
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2015-08-31 10:43:30 +0000
committerKurt Jaeger <pi@FreeBSD.org>2015-08-31 10:43:30 +0000
commit3a4b2353edd5cccf9969c0e228f20cacc9c3f4cb (patch)
treed96449df39048210f7c58c2cf2f0c3b174522141 /databases/mysql-connector-odbc/files/patch-driver_handle.c
parentDrop USES=iconv. (diff)
databases/mysql-connector-odbc: build and interoperate with mariadb-10
PR: 198925 Submitted by: Pavel Timofeev <timp87@gmail.com> Approved by: sergey@network-asp.biz (maintainer timeout)
Notes
Notes: svn path=/head/; revision=395662
Diffstat (limited to 'databases/mysql-connector-odbc/files/patch-driver_handle.c')
-rw-r--r--databases/mysql-connector-odbc/files/patch-driver_handle.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/databases/mysql-connector-odbc/files/patch-driver_handle.c b/databases/mysql-connector-odbc/files/patch-driver_handle.c
new file mode 100644
index 000000000000..c0e2c5834f8f
--- /dev/null
+++ b/databases/mysql-connector-odbc/files/patch-driver_handle.c
@@ -0,0 +1,14 @@
+--- driver/handle.c.orig 2014-06-19 02:50:16.000000000 +0400
++++ driver/handle.c 2015-03-26 12:36:14.548929818 +0300
+@@ -403,7 +403,11 @@
+ }
+ }
+
++#ifdef MARIADB_BASE_VERSION
++ my_init_dynamic_array(*param_bind, sizeof(MYSQL_BIND), elements, 10, 0);
++#else
+ my_init_dynamic_array(*param_bind, sizeof(MYSQL_BIND), elements, 10);
++#endif
+ memset((*param_bind)->buffer, 0, sizeof(MYSQL_BIND) *
+ (*param_bind)->max_element);
+