File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -315,8 +315,8 @@ public void FinishQuerying()
315
315
// KILL QUERY will kill a subsequent query if the command it was intended to cancel has already completed.
316
316
// In order to handle this case, we issue a dummy query that will consume the pending cancellation.
317
317
// See https://bugs.mysql.com/bug.php?id=45679
318
- Log . Debug ( "Session{0} sending 'DO SLEEP(0)' command to clear pending cancellation" , m_logArguments ) ;
319
- var payload = QueryPayload . Create ( SupportsQueryAttributes , "DO SLEEP(0);" ) ;
318
+ Log . Debug ( "Session{0} sending 'SLEEP(0)' command to clear pending cancellation" , m_logArguments ) ;
319
+ var payload = QueryPayload . Create ( SupportsQueryAttributes , "SELECT SLEEP(0) INTO @ \uE001 MySqlConnector \uE001 Sleep ;" ) ;
320
320
#pragma warning disable CA2012 // Safe because method completes synchronously
321
321
SendAsync ( payload , IOBehavior . Synchronous , CancellationToken . None ) . GetAwaiter ( ) . GetResult ( ) ;
322
322
payload = ReceiveReplyAsync ( IOBehavior . Synchronous , CancellationToken . None ) . GetAwaiter ( ) . GetResult ( ) ;
You can’t perform that action at this time.
0 commit comments