[pgsqlclient-checkins] pgsqlclient_10/PostgreSql.Data.PgSqlClient/source PgTransaction.cs,1.8,1.9
Status: Inactive
Brought to you by:
carlosga_fb
From: Carlos G. Á. <car...@us...> - 2004-09-29 12:08:44
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15348 Modified Files: PgTransaction.cs Log Message: Mayor update of the PgSqlClient sources Index: PgTransaction.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTransaction.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** PgTransaction.cs 22 Jul 2004 10:57:30 -0000 1.8 --- PgTransaction.cs 29 Sep 2004 12:08:34 -0000 1.9 *************** *** 70,75 **** if (this.connection != null && value) { ! this.connection.ActiveTransaction = null; ! this.connection = null; } this.isUpdated = value; --- 70,75 ---- if (this.connection != null && value) { ! this.connection.InternalConnection.ActiveTransaction = null; ! this.connection = null; } this.isUpdated = value; *************** *** 81,87 **** #region Constructors ! private PgTransaction() { - this.isolationLevel = IsolationLevel.ReadCommitted; } --- 81,86 ---- #region Constructors ! private PgTransaction() : this(null) { } *************** *** 112,116 **** { this.Dispose(true); ! System.GC.SuppressFinalize(this); } --- 111,115 ---- { this.Dispose(true); ! GC.SuppressFinalize(this); } *************** *** 133,138 **** if (this.connection != null) { ! this.connection.ActiveTransaction = null; ! this.connection = null; } this.disposed = true; --- 132,137 ---- if (this.connection != null) { ! this.connection.InternalConnection.ActiveTransaction = null; ! this.connection = null; } this.disposed = true; *************** *** 153,164 **** throw new InvalidOperationException("This Transaction has completed; it is no longer usable."); } - if (this.Connection.DataReader != null) - { - throw new InvalidOperationException("PgCommand is currently busy Open, Fetching."); - } try { ! this.connection.DbConnection.DB.CommitTransaction(); this.IsUpdated = true; --- 152,159 ---- throw new InvalidOperationException("This Transaction has completed; it is no longer usable."); } try { ! this.connection.InternalConnection.Database.CommitTransaction(); this.IsUpdated = true; *************** *** 176,187 **** throw new InvalidOperationException("This Transaction has completed; it is no longer usable."); } - if (this.Connection.DataReader != null) - { - throw new InvalidOperationException("PgCommand is currently busy Open, Fetching."); - } try { ! this.connection.DbConnection.DB.RollbackTransction(); this.IsUpdated = true; --- 171,178 ---- throw new InvalidOperationException("This Transaction has completed; it is no longer usable."); } try { ! this.connection.InternalConnection.Database.RollbackTransction(); this.IsUpdated = true; *************** *** 201,205 **** try { ! this.connection.DbConnection.DB.BeginTransaction(isolationLevel); this.IsUpdated = false; --- 192,196 ---- try { ! this.connection.InternalConnection.Database.BeginTransaction(isolationLevel); this.IsUpdated = false; |