From 3a4b2353edd5cccf9969c0e228f20cacc9c3f4cb Mon Sep 17 00:00:00 2001 From: Kurt Jaeger Date: Mon, 31 Aug 2015 10:43:30 +0000 Subject: databases/mysql-connector-odbc: build and interoperate with mariadb-10 PR: 198925 Submitted by: Pavel Timofeev Approved by: sergey@network-asp.biz (maintainer timeout) --- .../mysql-connector-odbc/files/patch-driver_parse.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 databases/mysql-connector-odbc/files/patch-driver_parse.c (limited to 'databases/mysql-connector-odbc/files/patch-driver_parse.c') diff --git a/databases/mysql-connector-odbc/files/patch-driver_parse.c b/databases/mysql-connector-odbc/files/patch-driver_parse.c new file mode 100644 index 000000000000..a65f66f0470f --- /dev/null +++ b/databases/mysql-connector-odbc/files/patch-driver_parse.c @@ -0,0 +1,16 @@ +--- driver/parse.c.orig 2014-06-19 02:50:16.000000000 +0400 ++++ driver/parse.c 2015-03-26 12:37:12.112907082 +0300 +@@ -129,8 +129,13 @@ + + /* TODO: Store offsets rather than ptrs. In this case we will be fine + if work with copy of the originally parsed string */ ++#ifdef MARIADB_BASE_VERSION ++ my_init_dynamic_array(&pq->token, sizeof(uint), 20, 10, 0); ++ my_init_dynamic_array(&pq->param_pos, sizeof(uint), 10, 10, 0); ++#else + my_init_dynamic_array(&pq->token, sizeof(uint), 20, 10); + my_init_dynamic_array(&pq->param_pos, sizeof(uint), 10, 10); ++#endif + } + + return pq; -- cgit v1.2.3