Fixed copy/paste mistakes

This commit is contained in:
high 2011-07-08 03:54:08 -04:00
parent bb77a3baea
commit d3cdb1095a
2 changed files with 4 additions and 4 deletions

View file

@ -26,13 +26,13 @@ namespace TShockAPI.DB
{typeof(Int64), (s, i) => s.GetInt64(i)},
{typeof(string), (s, i) => s.GetString(i)},
{typeof(decimal), (s, i) => s.GetDecimal(i)},
{typeof(decimal), (s, i) => s.GetFloat(i)},
{typeof(float), (s, i) => s.GetFloat(i)},
{typeof(double), (s, i) => s.GetDouble(i)},
};
public static T Get<T>(this IDataReader reader, string column)
{
return reader.Get<T>(column);
return reader.Get<T>(reader.GetOrdinal(column));
}
public static T Get<T>(this IDataReader reader, int column)
{

View file

@ -35,5 +35,5 @@ using System.Runtime.InteropServices;
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.3.2.0705")]
[assembly: AssemblyFileVersion("2.3.2.0705")]
[assembly: AssemblyVersion("2.3.2.0708")]
[assembly: AssemblyFileVersion("2.3.2.0708")]