There was a function called Poco::Data::SessionPool::customizeSession() added way back in release 1.3.4. This has disappeared in release 1.5.0+ without any comments in the revision history or mention in the change log.
It still appears here: https://github.com/pocoproject/poco/blob/poco-1.4.6/Data/src/SessionPool.cpp
But it's missing here: https://github.com/pocoproject/poco/blob/poco-1.5.0/Data/src/SessionPool.cpp
AFAIK, this was the only thing that allowed you to save and reuse prepared statements with the SessionPool container. Is there any alternative mechanism for doing this? Was customizeSession() removed accidentally?