1 | --- mcs/class/System.Data/System.Data.Odbc/OdbcDataReader.cs.orig 2007-07-02 01:34:41.000000000 +0200 |
---|
2 | +++ mcs/class/System.Data/System.Data.Odbc/OdbcDataReader.cs 2007-07-02 01:35:17.000000000 +0200 |
---|
3 | @@ -728,7 +728,9 @@ |
---|
4 | ret = libodbc.SQLGetData (hstmt, ColIndex, col.SqlCType, ref ts_data, 0, ref outsize); |
---|
5 | if (outsize!=-1) // This means SQL_NULL_DATA |
---|
6 | DataValue = new DateTime(ts_data.year,ts_data.month,ts_data.day,ts_data.hour, |
---|
7 | - ts_data.minute,ts_data.second,Convert.ToInt32(ts_data.fraction)); |
---|
8 | + ts_data.minute,ts_data.second); |
---|
9 | + if (ts_data.fraction != 0) |
---|
10 | + DataValue = ((DateTime) DataValue).AddTicks ((long)ts_data.fraction / 100); |
---|
11 | break; |
---|
12 | case OdbcType.VarBinary : |
---|
13 | case OdbcType.Image : |
---|