dbms: development [#CONV-2944].

This commit is contained in:
Alexey Milovidov 2012-10-18 23:52:31 +00:00
parent a1fd23efb1
commit 957f89f4e3

View File

@ -109,11 +109,9 @@ public:
*/
/// Отправим просьбу прервать выполнение запроса, если ещё не отправляли.
if (!was_cancelled)
if (!was_cancelled && !std::uncaught_exception())
{
LOG_TRACE(log, (std::uncaught_exception()
? "Cancelling query because of exception on client"
: "Cancelling query because enough data has been read"));
LOG_TRACE(log, "Cancelling query because enough data has been read");
was_cancelled = true;
connection.sendCancel();