summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-12-15 15:27:01 +0100
committerGitHub <noreply@github.com>2019-12-15 15:27:01 +0100
commitf7dcf124a3115c5398774b80b90d43d650344022 (patch)
treec96df8e17aa9c3f64382b6425b6011ade6e6ee4a /src/common
parent3c5540b9e9f09943a8cc2fd294035a5ccaf63f5e (diff)
parenta14968850fb2474b29552db21d63d0bb303e73d1 (diff)
downloadhercules-f7dcf124a3115c5398774b80b90d43d650344022.tar.gz
hercules-f7dcf124a3115c5398774b80b90d43d650344022.tar.bz2
hercules-f7dcf124a3115c5398774b80b90d43d650344022.tar.xz
hercules-f7dcf124a3115c5398774b80b90d43d650344022.zip
Merge pull request #2580 from Asheraf/winmariadbconnector
Replace the windows mysql connector with MariaDB C Connector
Diffstat (limited to 'src/common')
-rw-r--r--src/common/sql.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/sql.c b/src/common/sql.c
index 0b5b7fa07..0efc54564 100644
--- a/src/common/sql.c
+++ b/src/common/sql.c
@@ -94,6 +94,9 @@ static struct Sql *Sql_Malloc(void)
{
my_bool reconnect = 1;
mysql_options(&self->handle, MYSQL_OPT_RECONNECT, &reconnect);
+#ifdef WIN32
+ mysql_optionsv(&self->handle, MYSQL_PLUGIN_DIR, MARIADB_PLUGINDIR);
+#endif
}
return self;
}