Mono.Data.Sqlite: Fix type name comparison to compare the entire name, not just a...
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 6 Mar 2012 23:31:23 +0000 (00:31 +0100)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 6 Mar 2012 23:45:47 +0000 (00:45 +0100)
mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLiteConvert.cs

index 2b0a45a83f4716f18ce4b40cca2cca77e2f1f83c..550854088a573598323bedcc6ee11118ade246a6 100644 (file)
@@ -634,7 +634,7 @@ namespace Mono.Data.Sqlite
       int x = _typeNames.Length;\r
       for (int n = 0; n < x; n++)\r
       {\r
-        if (String.Compare(Name, 0, _typeNames[n].typeName, 0, _typeNames[n].typeName.Length, true, CultureInfo.InvariantCulture) == 0)\r
+        if (String.Compare(Name, _typeNames[n].typeName, true, CultureInfo.InvariantCulture) == 0)\r
           return _typeNames[n].dataType; \r
       }\r
       return DbType.Object;\r