]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
fix up the mysql client group patch
authorBert Hubert <bert.hubert@netherlabs.nl>
Sat, 6 Oct 2012 19:16:34 +0000 (19:16 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sat, 6 Oct 2012 19:16:34 +0000 (19:16 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2778 d19b8d6e-7fed-0310-83ef-9ca221ded41b

modules/gmysqlbackend/smysql.cc

index 987adbf4b7d96fe6e1e2ff82a6e544e254c6555e..aa8ac6d4f398e4cbc577bd367ff83342fe98a516 100644 (file)
@@ -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(),