[Sys.Data] fix SqlParameter SystemType lookup after referencesource merge.
authorAtsushi Eno <atsushieno@gmail.com>
Fri, 24 Apr 2015 06:49:44 +0000 (15:49 +0900)
committerAtsushi Eno <atsushieno@gmail.com>
Fri, 24 Apr 2015 06:49:44 +0000 (15:49 +0900)
This should fix bug #29078, patch by Neale Ferguson.

mcs/class/System.Data/System.Data.SqlClient/SqlParameter.cs

index 346c796ee9bfcfa7b2d0b68b3369d7e7384038b1..8a3dd70230c71f7ea03ca21488b1048e8199c2f9 100644 (file)
@@ -64,7 +64,7 @@ namespace System.Data.SqlClient {
                 // LAMESPEC: Implementors should populate the dbTypeMapping accordingly
                 internal Type SystemType {
                         get {
-                                return (Type) dbTypeMapping [DbType];
+                                return (Type) dbTypeMapping [SqlDbType];
                         }
                 }
 #endregion