mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 08:46:41 +01:00
fix(Data::SQLChannel): remove SQLChannel::close() parameter (hides virtual from parent) #4230
This commit is contained in:
parent
8de0033591
commit
b1e7b9ff3b
@ -106,7 +106,7 @@ public:
|
||||
/// Opens the SQLChannel.
|
||||
/// Returns true if succesful.
|
||||
|
||||
void close(int ms = 0);
|
||||
void close();
|
||||
/// Closes the SQLChannel.
|
||||
|
||||
void run();
|
||||
|
@ -110,7 +110,7 @@ SQLChannel::~SQLChannel()
|
||||
try
|
||||
{
|
||||
stop();
|
||||
close(_timeout);
|
||||
close();
|
||||
wait();
|
||||
if (_pFileChannel)
|
||||
_pFileChannel->close();
|
||||
@ -170,9 +170,9 @@ void SQLChannel::open()
|
||||
}
|
||||
|
||||
|
||||
void SQLChannel::close(int ms)
|
||||
void SQLChannel::close()
|
||||
{
|
||||
wait(ms);
|
||||
wait(_timeout);
|
||||
_pSession = nullptr;
|
||||
}
|
||||
|
||||
@ -237,7 +237,7 @@ void SQLChannel::run()
|
||||
{
|
||||
if (_reconnect)
|
||||
{
|
||||
close(_timeout);
|
||||
close();
|
||||
open();
|
||||
_reconnect = _pSession.isNull();
|
||||
if (_reconnect && sleepTime < 12800)
|
||||
@ -591,7 +591,7 @@ size_t SQLChannel::execSQL()
|
||||
_logger.error(ex.displayText());
|
||||
if (!_file.empty())
|
||||
n = logTofile(_pFileChannel, _file);
|
||||
close(_timeout);
|
||||
close();
|
||||
_reconnect = true;
|
||||
}
|
||||
catch (std::exception& ex)
|
||||
@ -599,7 +599,7 @@ size_t SQLChannel::execSQL()
|
||||
_logger.error(ex.what());
|
||||
if (!_file.empty())
|
||||
n = logTofile(_pFileChannel, _file);
|
||||
close(_timeout);
|
||||
close();
|
||||
_reconnect = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user