aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Database/MySQLConnection.h
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-09-29 14:59:05 +0200
committerMachiavelli <none@none>2010-09-29 14:59:05 +0200
commitd3b30e979a4fd3f04263813ecbfe5eadef6fef6e (patch)
treec3f08c6c25f6284e35971cb94aac1334d6752e41 /src/server/shared/Database/MySQLConnection.h
parentbf72fa749ff3beef2ba226862e2a5af7c170fc49 (diff)
Fix linux compile. Thanks to click, hunshijie and tomkuzyno for spotting the culprits.
--HG-- branch : trunk
Diffstat (limited to 'src/server/shared/Database/MySQLConnection.h')
-rw-r--r--src/server/shared/Database/MySQLConnection.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/shared/Database/MySQLConnection.h b/src/server/shared/Database/MySQLConnection.h
index 0c18ad8b7fb..cfef240fda2 100644
--- a/src/server/shared/Database/MySQLConnection.h
+++ b/src/server/shared/Database/MySQLConnection.h
@@ -53,6 +53,11 @@ struct MySQLConnectionInfo
std::string database;
std::string host;
std::string port_or_socket;
+
+ void ChangeHost(const std::string& newHost) /// Needed for unix socket case
+ {
+ host = newHost;
+ }
};
class MySQLConnection