mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-08 21:10:02 +02:00
Fixed PostgreSQL SessionImpl, use mysql_reset_connection() if it is
available Use mysql_reset_connection() only if MySQL version is >= 5.7 or MariaDB version is >= 3.0.0 otherwise fall back to myslq_refresh()
This commit is contained in:
@@ -62,6 +62,9 @@ public:
|
||||
void close();
|
||||
/// Closes the connection.
|
||||
|
||||
void reset();
|
||||
/// Do nothing
|
||||
|
||||
bool isConnected() const;
|
||||
/// Returns true if connected, false otherwise.
|
||||
|
||||
|
@@ -151,6 +151,12 @@ void SessionImpl::close()
|
||||
}
|
||||
|
||||
|
||||
void SessionImpl::reset()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
bool SessionImpl::isConnected() const
|
||||
{
|
||||
return _sessionHandle.isConnected();
|
||||
|
Reference in New Issue
Block a user