diff options
Diffstat (limited to 'odb/pgsql/connection-factory.cxx')
-rw-r--r-- | odb/pgsql/connection-factory.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/odb/pgsql/connection-factory.cxx b/odb/pgsql/connection-factory.cxx index fdf3942..6e602d3 100644 --- a/odb/pgsql/connection-factory.cxx +++ b/odb/pgsql/connection-factory.cxx @@ -133,7 +133,10 @@ namespace odb in_use_--; if (keep) + { connections_.push_back (pooled_connection_ptr (inc_ref (c))); + connections_.back ()->recycle (); + } if (waiters_ != 0) cond_.signal (); |