From ce9dd8b45b4597e0b57b1484b2a9ad9dfc5e6504 Mon Sep 17 00:00:00 2001 From: Bert Hubert Date: Sun, 7 Oct 2012 16:39:22 +0000 Subject: [PATCH] ok NOW it works on all MySQL versions. Thanks again to Kees Monshouwer for testing! git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2780 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- modules/gmysqlbackend/smysql.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gmysqlbackend/smysql.cc b/modules/gmysqlbackend/smysql.cc index aa8ac6d4f3..4985ebbe31 100644 --- a/modules/gmysqlbackend/smysql.cc +++ b/modules/gmysqlbackend/smysql.cc @@ -31,7 +31,7 @@ SMySQL::SMySQL(const string &database, const string &host, uint16_t port, const mysql_options(&d_db, MYSQL_OPT_WRITE_TIMEOUT, &timeout); #endif - mysql_options(&d_db, MYSQL_READ_DEFAULT_GROUP, (void*)group.c_str()); + mysql_options(&d_db, MYSQL_READ_DEFAULT_GROUP, group.c_str()); if (!mysql_real_connect(&d_db, host.empty() ? NULL : host.c_str(), user.empty() ? NULL : user.c_str(), -- 2.47.3