]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
ok NOW it works on all MySQL versions. Thanks again to Kees Monshouwer for testing!
authorBert Hubert <bert.hubert@netherlabs.nl>
Sun, 7 Oct 2012 16:39:22 +0000 (16:39 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sun, 7 Oct 2012 16:39:22 +0000 (16:39 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2780 d19b8d6e-7fed-0310-83ef-9ca221ded41b

modules/gmysqlbackend/smysql.cc

index aa8ac6d4f398e4cbc577bd367ff83342fe98a516..4985ebbe31affec9ad86b6764e74818e44fd3535 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, (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(),