diff options
Diffstat (limited to 'databases/mysql-connector-odbc/files/patch-driver_parse.c')
-rw-r--r-- | databases/mysql-connector-odbc/files/patch-driver_parse.c | 16 |
1 files changed, 16 insertions, 0 deletions
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; |