mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-06-04 19:11:13 +00:00
ensure max pool connections setting is sane (if less than 1, assume 5)
This commit is contained in:
parent
7a142e57c4
commit
869cfda7d1
1 changed files with 1 additions and 0 deletions
|
@ -570,6 +570,7 @@ static Class cls = Nil;
|
|||
int index;
|
||||
|
||||
if (minConnections < 1) minConnections = 1;
|
||||
if (maxConnections < 1) maxConnections = 5;
|
||||
if (maxConnections > 100) maxConnections = 100;
|
||||
if (minConnections > maxConnections) minConnections = maxConnections;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue