From: Bert Hubert Date: Sat, 6 Oct 2012 19:16:34 +0000 (+0000) Subject: fix up the mysql client group patch X-Git-Tag: auth-3.2-rc1~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5613cceb88a17d26350c70780100e0d6f3fa700;p=thirdparty%2Fpdns.git fix up the mysql client group patch git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2778 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/modules/gmysqlbackend/smysql.cc b/modules/gmysqlbackend/smysql.cc index 987adbf4b7..aa8ac6d4f3 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, &group); + mysql_options(&d_db, MYSQL_READ_DEFAULT_GROUP, (void*)group.c_str()); if (!mysql_real_connect(&d_db, host.empty() ? NULL : host.c_str(), user.empty() ? NULL : user.c_str(),