diff options
author | Sureshkumar T <suresh@mono-cvs.ximian.com> | 2005-10-14 11:13:46 +0400 |
---|---|---|
committer | Sureshkumar T <suresh@mono-cvs.ximian.com> | 2005-10-14 11:13:46 +0400 |
commit | bf9387cd52a1b97c86716414a2db3c8cfa3801cc (patch) | |
tree | 29c5404f993f67ec278e50ac5d6dc4a304d21a41 /mcs/class/System.Data/System.Data.Odbc | |
parent | be4ca4ac72bf8eace2f25542fdabf9164327c0f2 (diff) |
* OdbcDataReader.cs (GetValue): Use SQL_CHAR for Numeric as
temporary fix.
svn path=/trunk/mcs/; revision=51703
Diffstat (limited to 'mcs/class/System.Data/System.Data.Odbc')
-rw-r--r-- | mcs/class/System.Data/System.Data.Odbc/ChangeLog | 3 | ||||
-rw-r--r-- | mcs/class/System.Data/System.Data.Odbc/OdbcDataReader.cs | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/mcs/class/System.Data/System.Data.Odbc/ChangeLog b/mcs/class/System.Data/System.Data.Odbc/ChangeLog index bda1d12cf4a..42dcd00c110 100644 --- a/mcs/class/System.Data/System.Data.Odbc/ChangeLog +++ b/mcs/class/System.Data/System.Data.Odbc/ChangeLog @@ -1,5 +1,8 @@ 2005-10-14 Sureshkumar T <tsureshkumar@novell.com> + * OdbcDataReader.cs (GetValue): Use SQL_CHAR for Numeric as + temporary fix. + * OdbcParameter.cs (CopyValue): Add support for Numeric & Decimal parameters. diff --git a/mcs/class/System.Data/System.Data.Odbc/OdbcDataReader.cs b/mcs/class/System.Data/System.Data.Odbc/OdbcDataReader.cs index 30e879390b2..0d951371c15 100644 --- a/mcs/class/System.Data/System.Data.Odbc/OdbcDataReader.cs +++ b/mcs/class/System.Data/System.Data.Odbc/OdbcDataReader.cs @@ -671,8 +671,9 @@ namespace System.Data.Odbc case OdbcType.Numeric: case OdbcType.Decimal: bufsize=50; - buffer=new byte[bufsize]; // According to sqlext.h, use SQL_CHAR for decimal. - ret=libodbc.SQLGetData(hstmt, ColIndex, col.SqlCType, buffer, bufsize, ref outsize); + buffer=new byte[bufsize]; // According to sqlext.h, use SQL_CHAR for decimal. + // FIXME : use Numeric. + ret=libodbc.SQLGetData(hstmt, ColIndex, SQL_C_TYPE.CHAR, buffer, bufsize, ref outsize); if (outsize!=-1) { byte[] temp = new byte[outsize]; for (int i=0;i<outsize;i++) |