Author: krasnov
Date: 2006-11-29 05:11:31 -0500 (Wed, 29 Nov 2006)
New Revision: 68649
Modified:
trunk/mcs/class/System.Data/System.Data.ProviderBase.jvm/AbstractDBCommand.cs
trunk/mcs/class/System.Data/System.Data.ProviderBase.jvm/ChangeLog
Log:
* AbstractDBConnection.cs: fixed ExecuteDbDataReader, wrong exception if
executiong on closed connection
Modified:
trunk/mcs/class/System.Data/System.Data.ProviderBase.jvm/AbstractDBCommand.cs
===================================================================
---
trunk/mcs/class/System.Data/System.Data.ProviderBase.jvm/AbstractDBCommand.cs
2006-11-29 09:47:42 UTC (rev 68648)
+++
trunk/mcs/class/System.Data/System.Data.ProviderBase.jvm/AbstractDBCommand.cs
2006-11-29 10:11:31 UTC (rev 68649)
@@ -813,15 +813,15 @@
throw
ExceptionHelper.ConnectionNotInitialized("ExecuteReader");
}
- IDbTransaction transaction = Transaction;
- if ((transaction != null && transaction.Connection !=
connection) ||
- (transaction == null &&
!connection.JdbcConnection.getAutoCommit())) {
- throw
ExceptionHelper.TransactionNotInitialized();
- }
-
connection.IsExecuting = true;
try {
+ IDbTransaction transaction = Transaction;
+ if ((transaction != null &&
transaction.Connection != connection) ||
+ (transaction == null &&
!connection.JdbcConnection.getAutoCommit ())) {
+ throw
ExceptionHelper.TransactionNotInitialized ();
+ }
+
Behavior = behavior;
PrepareInternalParameters();
Modified: trunk/mcs/class/System.Data/System.Data.ProviderBase.jvm/ChangeLog
===================================================================
--- trunk/mcs/class/System.Data/System.Data.ProviderBase.jvm/ChangeLog
2006-11-29 09:47:42 UTC (rev 68648)
+++ trunk/mcs/class/System.Data/System.Data.ProviderBase.jvm/ChangeLog
2006-11-29 10:11:31 UTC (rev 68649)
@@ -1,3 +1,8 @@
+2006-11-29 Vladimir Krasnov <[EMAIL PROTECTED]>
+
+ * AbstractDBConnection.cs: fixed ExecuteDbDataReader, wrong exception
+ if executiong on closed connection
+
2006-08-24 Vladimir Krasnov <[EMAIL PROTECTED]>
* AbstractDBConnection.cs: fixed GetSyntaxPatterns, configuration
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches