session::session(connection_pool & pool) : isFromPool_(true), pool_(&pool) { poolPosition_ = pool.lease(); session & pooledSession = pool.at(poolPosition_); once.set_session(&pooledSession); prepare.set_session(&pooledSession); backEnd_ = pooledSession.get_backend(); }
session::session(connection_pool & pool) : query_transformation_(NULL), logStream_(NULL), isFromPool_(true), pool_(&pool) { poolPosition_ = pool.lease(); session & pooledSession = pool.at(poolPosition_); once.set_session(&pooledSession); prepare.set_session(&pooledSession); backEnd_ = pooledSession.get_backend(); }