Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24734
Modified Files:
PgCommand.cs
Log Message:
2004-05-03 Carlos Guzman Alvarez <car...@te...>
* PostgreSql.Data.PGSqlClient/PgCommand.cs:
- Clenaup.
Index: PgCommand.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgCommand.cs,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** PgCommand.cs 2 May 2004 14:21:10 -0000 1.35
--- PgCommand.cs 3 May 2004 20:30:15 -0000 1.36
***************
*** 116,128 ****
set
{
! if (this.connection != null &&
! this.connection.DataReader != null)
{
throw new InvalidOperationException("There is already an open DataReader associated with this Connection which must be closed first.");
}
if (this.transaction != null && !this.transaction.IsUpdated)
{
throw new InvalidOperationException("The Connection property was changed while a transaction was in progress.");
}
if (this.connection != value)
{
--- 116,131 ----
set
{
! if (this.connection != null && this.connection.DataReader != null)
{
throw new InvalidOperationException("There is already an open DataReader associated with this Connection which must be closed first.");
}
+
+ /*
if (this.transaction != null && !this.transaction.IsUpdated)
{
throw new InvalidOperationException("The Connection property was changed while a transaction was in progress.");
}
+ */
+
if (this.connection != value)
{
***************
*** 174,179 ****
set
{
! if (this.connection != null &&
! this.connection.DataReader != null)
{
throw new InvalidOperationException("There is already an open DataReader associated with this Connection which must be closed first.");
--- 177,181 ----
set
{
! if (this.connection != null && this.connection.DataReader != null)
{
throw new InvalidOperationException("There is already an open DataReader associated with this Connection which must be closed first.");
|