0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Make connection pool useable

This commit is contained in:
MacDue 2020-01-14 12:50:53 +00:00 committed by Roland Bock
parent a51b6da3bd
commit 73df6df867

View File

@ -183,7 +183,7 @@ namespace sqlpp
try try
{ {
auto c = std::unique_ptr<Connection>(new Connection(*(config.get()))); auto c = std::unique_ptr<Connection>(new Connection(config));
return pool_connection<Connection_config, Reconnect_policy, Connection>(c, this); return pool_connection<Connection_config, Reconnect_policy, Connection>(c, this);
} }
catch (const sqlpp::exception& e) catch (const sqlpp::exception& e)