Fix [Bug 52795] Infinite loop on MySqlDataReader.ReadAsync() (#4504)
authorEgor Bogatov <egorbo@gmail.com>
Fri, 10 Mar 2017 12:48:59 +0000 (15:48 +0300)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 10 Mar 2017 12:48:59 +0000 (13:48 +0100)
mcs/class/referencesource/System.Data/System/Data/Common/AdapterUtil.cs

index 32bc1e964e2ce57e1305e48a1772c2add589af41..1ba61d95a6a06b14afc98732a9b396cbc23e3cfb 100644 (file)
@@ -81,7 +81,7 @@ namespace System.Data.Common {
 
         static internal Task<bool> s_trueTask = Task.FromResult<bool>(true);
 
-        static internal Task<bool> s_falseTask = Task.FromResult<bool>(true);
+        static internal Task<bool> s_falseTask = Task.FromResult<bool>(false);
         
         [BidMethod] // this method accepts BID format as an argument, this attribute allows FXCopBid rule to validate calls to it
         static private void TraceException(