diff options
-rw-r--r-- | odb/oracle/connection-factory.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/odb/oracle/connection-factory.hxx b/odb/oracle/connection-factory.hxx index ce193e5..bc7c530 100644 --- a/odb/oracle/connection-factory.hxx +++ b/odb/oracle/connection-factory.hxx @@ -9,6 +9,7 @@ #include <vector> #include <cstddef> // std::size_t +#include <cassert> #include <odb/details/mutex.hxx> #include <odb/details/condition.hxx> @@ -88,7 +89,9 @@ namespace odb db_ (0), cond_ (mutex_) { - // @@ check min_ <= max_ + // max_connections == 0 means unlimited. + // + assert (max_connections == 0 || max_connections >= min_connections); } virtual connection_ptr |