We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2aa7c4 commit 07d5b7cCopy full SHA for 07d5b7c
1 file changed
lib/ibmdb.js
@@ -52,9 +52,10 @@ function IBMDB(name, settings) {
52
53
// Save off the connectionOptions passed in for connection pooling
54
this.connectionOptions = {};
55
- this.connectionOptions.minPoolSize = (settings.minPoolSize || 0);
56
- this.connectionOptions.maxPoolSize = (settings.maxPoolSize || 0);
57
- this.connectionOptions.connectionTimeout = (settings.connectionTimeout || 60);
+ this.connectionOptions.minPoolSize = parseInt(settings.minPoolSize, 10) || 0;
+ this.connectionOptions.maxPoolSize = parseInt(settings.maxPoolSize, 10) || 0;
+ this.connectionOptions.connectionTimeout =
58
+ parseInt(settings.connectionTimeout, 10) || 60;
59
60
// Create the Connection Pool object. It will be initialized once we
61
// have the connection string prepped below.
0 commit comments