aboutsummaryrefslogtreecommitdiff
path: root/dns/powerdns/files/patch-modules_gmysqlbackend_gmysqlbackend_cc
blob: bdee751a913bf6c28e60475663f6242078c62c18 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- modules/gmysqlbackend/gmysqlbackend.cc.orig	Thu Feb 27 13:49:37 2003
+++ modules/gmysqlbackend/gmysqlbackend.cc	Sun May 11 08:49:16 2003
@@ -20,14 +20,14 @@
 
 gMySQLBackend::gMySQLBackend(const string &mode, const string &suffix)  : GSQLBackend(mode,suffix)
 {
+  const string dbname = getArg ("dbname");
+  const string host   = getArg ("host");
+  const string socket = getArg ("socket");
+  const string user   = getArg ("user");
+  const string passwd = getArg ("password");
+
   try {
-    setDB(new SMySQL(getArg("dbname"),
-		  getArg("host"),
-		  getArg("port"),
-		  getArg("socket"),
-		  getArg("user"),
-		  getArg("password")));
-    
+    setDB(new SMySQL(dbname, host, socket, user, passwd));
   }
   
   catch(SSqlException &e) {