|| | |||Browse by category|
When setting the the DBTools connection pool size with the RWDBDatabase::defaultConnections(size_t reqdConnections) method, the connection pool size does not change, and the size remains at the initial default value of 1.
This issue is caused by incorrect logic in the poolable.cpp file in DBTools.
This issue has been resolved in our SourcePro DB product, available through your sales representative.
To work around this issue in your 4.x DBTools libraries, edit your existing poolable.cpp file to include the following function logic (see below), and recompile both the DBTools library and your application. The connection pool will now be resized as expected.
size_t oldValue = numberToRetain_;
numberToRetain_ = newValue;