This commit is contained in:
artpaul 2017-02-12 15:34:08 +05:00
parent c9b4a163be
commit 0c1dab92a3

View File

@ -67,7 +67,8 @@ namespace
const auto password = has_pw ? unescapeForFileName({colon + 1, user_pw_end}) : std::string{};
const auto host = unescapeForFileName({user_pw_end + 1, host_end});
const auto port = parse<UInt16>(host_end + 1, port_end - (host_end + 1));
const auto database = has_db ? unescapeForFileName({has_db + 1, address_end}) : std::string{};
const auto database = has_db ? unescapeForFileName(std::string(has_db + 1, address_end))
: std::string();
pools.emplace_back(factory(host, port, user, password, database));
}