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:
parent
a51b6da3bd
commit
73df6df867
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user