aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/mysql/connection-factory.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/odb/mysql/connection-factory.hxx b/odb/mysql/connection-factory.hxx
index 1d4610e..71011b1 100644
--- a/odb/mysql/connection-factory.hxx
+++ b/odb/mysql/connection-factory.hxx
@@ -9,6 +9,7 @@
#include <vector>
#include <cstddef> // std::size_t
+#include <cassert>
#include <odb/mysql/version.hxx>
#include <odb/mysql/forward.hxx>
@@ -93,7 +94,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