2002-05-03 Daniel Morgan <danmorg@sc.rr.com>
authorDaniel Morgan <monodanmorg@yahoo.com>
Fri, 3 May 2002 05:16:20 +0000 (05:16 -0000)
committerDaniel Morgan <monodanmorg@yahoo.com>
Fri, 3 May 2002 05:16:20 +0000 (05:16 -0000)
commit26625e0d8f9d60b90f115282d3df52481f57abb8
treeca88e5659821902d28af6e7c6cc13f25a991ed43
parenta1d803430dc03cfd36c7993ce8ab1326068c46a7
2002-05-03  Daniel Morgan <danmorg@sc.rr.com>

* Test/TestExecuteScalar.cs: added test for
method ExecuteScalar in class SqlCommand.

* System.Data/DataColumnCollection.cs - it should
inherit properties from base InternalDataCollectionBase
and use them instead of overriding them, such as, List.

* System.Data/DataColumn.cs
* System.Data/DataTable.cs: tweaks to retrieve
meta data from the database

* System.Data.SqlClient/PostgresLibrary.cs -
added method OidToType to convert PostgreSQL oid type
to System.Type.  Renamed method OidTypeToSystem
to ConvertPgTypeToSystem for converting the data value
from a PostgreSQL type to a .NET System type.

* System.Data.SqlClient/SqlCommand.cs: implemented
method ExecuteReader which returns a SqlDataReader
for a light forward only read only result set.
It works on types int4 ==> Int32 and
varchar ==> String.  Other types
will come later.

* System.Data.SqlClient/SqlConnection.cs: added comment

* System.Data.SqlClient/SqlDataReader.cs: implemented
class.  It works, but still lots to do.

* Test/ReadPostgresData.cs: stuff

* Test/TestSqlDataReader.cs: updated test for SqlDataReader
to display meta data and the data

svn path=/trunk/mcs/; revision=4247
19 files changed:
mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlCommand.cs
mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlConnection.cs
mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlDataReader.cs
mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PostgresLibrary.cs
mcs/class/Mono.Data.PostgreSqlClient/PgSqlCommand.cs
mcs/class/Mono.Data.PostgreSqlClient/PgSqlConnection.cs
mcs/class/Mono.Data.PostgreSqlClient/PgSqlDataReader.cs
mcs/class/Mono.Data.PostgreSqlClient/PostgresLibrary.cs
mcs/class/System.Data/ChangeLog
mcs/class/System.Data/System.Data.SqlClient/PostgresLibrary.cs
mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs
mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs
mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs
mcs/class/System.Data/System.Data/DataColumn.cs
mcs/class/System.Data/System.Data/DataColumnCollection.cs
mcs/class/System.Data/System.Data/DataTable.cs
mcs/class/System.Data/Test/ReadPostgresData.cs
mcs/class/System.Data/Test/TestExecuteScalar.cs [new file with mode: 0644]
mcs/class/System.Data/Test/TestSqlDataReader.cs