Skip to content

Commit

Permalink
Fix postgres build failure, closes #57
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 authored Mar 28, 2018
1 parent 0a91fe6 commit 48d9e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db-postgresql.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ DBPostgreSQL::DBPostgreSQL(const std::string &mapdir)
std::ifstream ifs((mapdir + "/world.mt").c_str());
if(!ifs.good())
throw std::runtime_error("Failed to read world.mt");
std::string const connect_string = get_setting("pgsql_connection", ifs);
std::string connect_string = read_setting("pgsql_connection", ifs);
ifs.close();
db = PQconnectdb(connect_string.c_str());

Expand Down

0 comments on commit 48d9e0b

Please sign in to comment.