View | Details | Raw Unified | Return to bug 219788 | Differences between
and this patch

Collapse All | Expand All

(-)files/patch-dbdimp.c (+32 lines)
Line 0 Link Here
1
From 9ea49043522f1f1387384edf42ced7ad3ec44d3a Mon Sep 17 00:00:00 2001
2
From: Georg Richter <georg@mariadb.com>
3
Date: Sun, 28 May 2017 15:22:09 +0200
4
Subject: [PATCH] Fix for builing DBD-mysql together with MariaDB Connector/C.
5
 Use mysql_option function instead of accessing internal members of MYSQL
6
 structure.
7
8
---
9
 dbdimp.c | 3 ++-
10
 1 file changed, 2 insertions(+), 1 deletion(-)
11
12
diff --git a/dbdimp.c b/dbdimp.c
13
index da428ed..763b9fa 100644
14
--- dbdimp.c.orig	2017-02-28 13:36:40 UTC
15
+++ dbdimp.c
16
@@ -2139,6 +2139,7 @@ MYSQL *mysql_dr_connect(
17
 
18
     if (result)
19
     {
20
+      my_bool reconnect= 0;
21
 #if MYSQL_VERSION_ID >=SERVER_PREPARE_VERSION
22
       /* connection succeeded. */
23
       /* imp_dbh == NULL when mysql_dr_connect() is called from mysql.xs
24
@@ -2155,7 +2156,7 @@ MYSQL *mysql_dr_connect(
25
         we turn off Mysql's auto reconnect and handle re-connecting ourselves
26
         so that we can keep track of when this happens.
27
       */
28
-      result->reconnect=0;
29
+      mysql_options(result, MYSQL_OPT_RECONNECT, &reconnect);
30
     }
31
     else {
32
       /* 

Return to bug 219788