* System.Data.SqlClient/PostgresLibrary.cs
* System.Data.SqlClient/SqlCommand.cs
* System.Data.SqlClient/SqlConnection.cs
* System.Data.SqlClient/SqlDataReader.cs
oid should not be hard coded because they
can change from one version of PostgreSQL
to the next. Use the typname's instead.
The PostgreSQL type data retrieves
at database connection time. Any unimplemented
types just default to string. These were things
suggested by Gonzalo.
* Test/ReadPostgresData.cs - stuff
* Test/TestSqlDataReader.cs - stuff
* System.Data.SqlTypes/SqlInt32.cs - added a using
svn path=/trunk/mcs/; revision=4281
* System.Data.build: removed comments
* System.Data.SqlClient/PostgresLibrary.cs: changed
the hard-coded PostgreSQL oid type int's to using an
enum. Also, added PostgreSQL bpchar (character) type.
* Test/TestSqlDataReader.cs: updated test
to include new bpchar PostgreSQL type
svn path=/trunk/mcs/; revision=4260
* 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
* System.Data.SqlClient/PostgresLibrary.cs: included new
internal class that will be a helper class in using
PostgreSQL. PostgresLibrary is used for the
pinvoke methods to the PostgreSQL Client
native C library libpq while the class PostgresHelper
is used for wrapper or helper methods. It currently only
has one static method OidTypeToSystem in converting
PostgreSQL types to .NET System.<type>s, such as,
a PostgreSQL int8 becomes a .NET System.Int64.
Only a few types have been added, such as, int2,
int4, int8, varchar, text, bool, and char. Other types
will come later.
* System.Data.SqlClient/SqlCommand.cs: implemented
method ExecuteScalar which allows us to do aggregate
functions, such as, count, avg, min, max, and sum. We
also are able to retrieve the result, convert it to the .NET type
as an object. The user of the returned object must explicitly cast.
* Test/ReadPostgresData.cs: updated sample
to help us learn to retrieve data in System.Data.SqlClient
classes
svn path=/trunk/mcs/; revision=4217
* Test/TestSqlInsert.cs: modified - do
a SQL DELETE before SQL INSERT of row so you can use this
test over and over.
* System.Data.SqlClient/SqlTransaction.cs: modified - default
IsolationLevel for PostgreSQL is ReadCommitted. However,
PostgreSQL allows Serializable as well.
(Thanks to Gonzalo for that!)
* System.Data.SqlClient/SqlConnection.cs: modified
* System.Data.SqlClient/SqlCommand.cs: modified
* System.Data.SqlClient/SqlTransaction.cs: modified - got transactions
working; however, we still need to implement SQL errors
and exceptions to properly handle transactions. Also, added
status and error message support from the PostgreSQL database.
Currently, this does a Console.WriteLine() to display the
status and error messages, but this is a TODO
for SQL errors and exceptions.
* System.Data/TODOAttribute.cs: added - needed MonoTODO
attribute for System.Data.dll assembly
* System.Data/IDbCommand.cs: modified - commented
overloaded method ExecuteReader
so System.Data.SqlClient.SqlCommand can compile
* System.Data/IDbCommand.cs: modified
* System.Data/IDbConnection.cs: modified - added using System;
* System.Data/IDataParameter.cs
* System.Data.build: modified - build classes
in System.Data.SqlClient and exclude others in System.Data
* System.Data.SqlClient/PostgresLibrary.cs: modified - change
parameter data type from IntPtr to enum ExecStatusType
* ChangeLog: modified - corrected previous entries in log
svn path=/trunk/mcs/; revision=3874
* System.Data.SqlClient/PostgresLibrary.cs: new internal class, which
contains all calls the the PostgreSQL client library, to be used
everywhere in System.Data.SqlClient.
svn path=/trunk/mcs/; revision=3804