aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite
diff options
context:
space:
mode:
Diffstat (limited to 'odb/sqlite')
-rw-r--r--odb/sqlite/connection-factory.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/odb/sqlite/connection-factory.hxx b/odb/sqlite/connection-factory.hxx
index 4f59791..e2274c2 100644
--- a/odb/sqlite/connection-factory.hxx
+++ b/odb/sqlite/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>
@@ -158,7 +159,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