Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNagappan Alagappan <nagappan@gmail.com>2007-02-21 10:52:20 +0300
committerNagappan Alagappan <nagappan@gmail.com>2007-02-21 10:52:20 +0300
commitf4eba8efe6f4fd06a84462c84a2f47e21cbb93ef (patch)
tree28f7b5a09dffab7ab5e3b5cf9104a4dc85b29b4c /mcs/class/System.Data/System.Data.Odbc/OdbcDataReader.cs
parentd25983f7c9d7e23c405b0566275a2097d6807c63 (diff)
2007-02-02 Amit Biswas <amit@amitbiswas.com>
* OdbcInfoMessageEventArgs.cs (ToString): Implemented new method. * OdbcParameterCollection.cs (AddRange, Insert, AddWithValue) (Remove, Contains, CopyTo): Implemented missing .NET 2.0 methods. * OdbcMetaDataCollectionNames.cs: Added new class for .NET 2.0 profile. * OdbcMetaDataCollectionNames.cs (Equals): Implemented overloads methods. 2007-02-02 Nidhi Rawal <rawalnidhi_rawal@yahoo.com> * libodbc.cs: Imported a dll file for char datatype. * OdbcDataReader.cs (GetChar): Implemented the method and wrote a switch case for char data type in GetValue method.. (GetDecimal): Implemented the method. * OdbcConnectionStringBuilder.cs: Written the new class. * OdbcMetaDataColumnNames.cs: Written the new class. * OdbcFactory.cs (CreateConnectionStringBuilder): Implemented the method. * OdbcParameterCollection.cs (IndexOf): Implemented the method. svn path=/trunk/mcs/; revision=73235
Diffstat (limited to 'mcs/class/System.Data/System.Data.Odbc/OdbcDataReader.cs')
-rw-r--r--mcs/class/System.Data/System.Data.Odbc/OdbcDataReader.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/mcs/class/System.Data/System.Data.Odbc/OdbcDataReader.cs b/mcs/class/System.Data/System.Data.Odbc/OdbcDataReader.cs
index b6e31ca10bf..bccf4322b34 100644
--- a/mcs/class/System.Data/System.Data.Odbc/OdbcDataReader.cs
+++ b/mcs/class/System.Data/System.Data.Odbc/OdbcDataReader.cs
@@ -318,14 +318,13 @@ namespace System.Data.Odbc
return returnVal;
}
- [MonoTODO]
public
#if NET_2_0
override
#endif // NET_2_0
char GetChar (int ordinal)
{
- throw new NotImplementedException ();
+ return (char) GetValue (ordinal);
}
[MonoTODO]
@@ -710,6 +709,11 @@ namespace System.Data.Odbc
} while (ret != OdbcReturn.NoData);
DataValue = sb1.ToString ();
break;
+ case OdbcType.Char:
+ char charData = ' ';
+ ret = libodbc.SQLGetData (hstmt, ColIndex, col.SqlCType, ref charData, 0, ref outsize);
+ DataValue = charData;
+ break;
case OdbcType.Real:
float float_data = 0;
ret = libodbc.SQLGetData (hstmt, ColIndex, col.SqlCType, ref float_data, 0, ref outsize);