Index: Doc/Extra/Provider/version.html
==================================================================
--- Doc/Extra/Provider/version.html
+++ Doc/Extra/Provider/version.html
@@ -44,10 +44,11 @@
Version History
1.0.92.0 - March XX, 2014 (release scheduled)
- Updated to SQLite 3.8.4.
+ - Raise the static SQLiteConnection.Changed event when any SQLiteCommand or SQLiteDataReader object is disposed.
- When the TraceWarning connection flag is set, issue warnings about possibly malformed UNC paths. Pursuant to [283344397b].
- Enhancements to the NuGet packages, including the new "modular" packages.
1.0.91.0 - February 12, 2014
Index: System.Data.SQLite/SQLiteCommand.cs
==================================================================
--- System.Data.SQLite/SQLiteCommand.cs
+++ System.Data.SQLite/SQLiteCommand.cs
@@ -187,10 +187,14 @@
/// Disposes of the command and clears all member variables
///
/// Whether or not the class is being explicitly or implicitly disposed
protected override void Dispose(bool disposing)
{
+ SQLiteConnection.OnChanged(_cnn, new ConnectionEventArgs(
+ SQLiteConnectionEventType.DisposingCommand, null, _transaction, this,
+ null, null, null, new object[] { disposing, disposed }));
+
bool skippedDispose = false;
try
{
if (!disposed)
Index: System.Data.SQLite/SQLiteConvert.cs
==================================================================
--- System.Data.SQLite/SQLiteConvert.cs
+++ System.Data.SQLite/SQLiteConvert.cs
@@ -1416,11 +1416,21 @@
Closing = 10,
///
/// The connection was closed.
///
- Closed = 11
+ Closed = 11,
+
+ ///
+ /// A command is being disposed.
+ ///
+ DisposingCommand = 12,
+
+ ///
+ /// A data reader is being disposed.
+ ///
+ DisposingDataReader = 13
}
///
/// This implementation of SQLite for ADO.NET can process date/time fields in
/// databases in one of six formats.
Index: System.Data.SQLite/SQLiteDataReader.cs
==================================================================
--- System.Data.SQLite/SQLiteDataReader.cs
+++ System.Data.SQLite/SQLiteDataReader.cs
@@ -102,18 +102,16 @@
_commandBehavior = behave;
_activeStatementIndex = -1;
_rowsAffected = -1;
+ SQLiteConnection.OnChanged(GetConnection(this),
+ new ConnectionEventArgs(SQLiteConnectionEventType.NewDataReader,
+ null, null, _command, this, null, null, new object[] { behave }));
+
if (_command != null)
- {
- SQLiteConnection.OnChanged(_command.Connection,
- new ConnectionEventArgs(SQLiteConnectionEventType.NewDataReader,
- null, null, _command, this, null, null, new object[] { behave }));
-
NextResult();
- }
}
///////////////////////////////////////////////////////////////////////////////////////////////
#region IDisposable "Pattern" Members
@@ -132,10 +130,16 @@
/// Dispose of all resources used by this datareader.
///
///
protected override void Dispose(bool disposing)
{
+ SQLiteConnection.OnChanged(GetConnection(this),
+ new ConnectionEventArgs(SQLiteConnectionEventType.DisposingDataReader,
+ null, null, _command, this, null, null, new object[] { disposing,
+ disposed, _commandBehavior, _readingState, _rowsAffected, _fieldCount,
+ _disposeCommand, _throwOnDisposed }));
+
try
{
if (!disposed)
{
//if (disposing)
Index: Tests/tkt-aba4549801.eagle
==================================================================
--- Tests/tkt-aba4549801.eagle
+++ Tests/tkt-aba4549801.eagle
@@ -67,45 +67,65 @@
\{\}\} \{System#Data#SQLite#SQLiteConnection#\d+ Closed \{\} \{\} \{\} \{\}\}\
\{System#Data#SQLite#SQLiteConnection#\d+ ConnectionString \{\} \{\} \{\}\
\{\}\} \{System#Object#\d+ NewCriticalHandle \{\} \{\} \{\}\
System#Data#SQLite#SQLiteConnectionHandle#\d+\}\
\{System#Data#SQLite#SQLiteConnection#\d+ NewCommand \{\}\
+System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
+\{System#Data#SQLite#SQLiteConnection#\d+ DisposingCommand \{\}\
System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
\{System#Data#SQLite#SQLiteConnection#\d+ Opened \{\} \{\} \{\} \{\}\}\
\{System#Data#SQLite#SQLiteConnection#\d+ NewCommand \{\}\
System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
\{System#Data#SQLite#SQLiteConnection#\d+ NewDataReader \{\}\
System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
\{\}\} \{System#Object#\d+ NewCriticalHandle \{\} \{\} \{\}\
System#Data#SQLite#SQLiteStatementHandle#\d+\}\
+\{System#Data#SQLite#SQLiteConnection#\d+ DisposingDataReader \{\}\
+System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
+\{\}\} \{System#Data#SQLite#SQLiteConnection#\d+ DisposingCommand \{\}\
+System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
\{System#Data#SQLite#SQLiteConnection#\d+ NewCommand \{\}\
System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
\{System#Data#SQLite#SQLiteConnection#\d+ NewDataReader \{\}\
System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
\{\}\} \{System#Object#\d+ NewCriticalHandle \{\} \{\} \{\}\
System#Data#SQLite#SQLiteStatementHandle#\d+\}\
+\{System#Data#SQLite#SQLiteConnection#\d+ DisposingDataReader \{\}\
+System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
+\{\}\} \{System#Data#SQLite#SQLiteConnection#\d+ DisposingCommand \{\}\
+System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
\{System#Data#SQLite#SQLiteConnection#\d+ NewCommand \{\}\
System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
\{System#Data#SQLite#SQLiteConnection#\d+ NewDataReader \{\}\
System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
\{\}\} \{System#Object#\d+ NewCriticalHandle \{\} \{\} \{\}\
System#Data#SQLite#SQLiteStatementHandle#\d+\}\
+\{System#Data#SQLite#SQLiteConnection#\d+ DisposingDataReader \{\}\
+System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
+\{\}\} \{System#Data#SQLite#SQLiteConnection#\d+ DisposingCommand \{\}\
+System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
\{System#Data#SQLite#SQLiteConnection#\d+ NewTransaction\
System#Data#SQLite#SQLiteTransaction#\d+ \{\} \{\} \{\}\}\
\{System#Data#SQLite#SQLiteConnection#\d+ NewCommand \{\}\
System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
\{System#Data#SQLite#SQLiteConnection#\d+ NewDataReader \{\}\
System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
\{\}\} \{System#Object#\d+ NewCriticalHandle \{\} \{\} \{\}\
System#Data#SQLite#SQLiteStatementHandle#\d+\} \{System#Object#\d+\
NewCriticalHandle \{\} \{\} \{\} System#Data#SQLite#SQLiteStatementHandle#\d+\}\
+\{System#Data#SQLite#SQLiteConnection#\d+ DisposingCommand \{\}\
+System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
\{System#Data#SQLite#SQLiteConnection#\d+ NewCommand \{\}\
System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
\{System#Data#SQLite#SQLiteConnection#\d+ NewDataReader \{\}\
System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
\{\}\} \{System#Object#\d+ NewCriticalHandle \{\} \{\} \{\}\
System#Data#SQLite#SQLiteStatementHandle#\d+\}\
+\{System#Data#SQLite#SQLiteConnection#\d+ DisposingDataReader \{\}\
+System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
+\{\}\} \{System#Data#SQLite#SQLiteConnection#\d+ DisposingCommand \{\}\
+System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
\{System#Data#SQLite#SQLiteConnection#\d+ Closing \{\} \{\} \{\} \{\}\}\
\{System#Data#SQLite#SQLiteConnection#\d+ Closed \{\} \{\} \{\} \{\}\}\
\{System#Data#SQLite#SQLiteConnection#\d+ Closing \{\} \{\} \{\} \{\}\}\
\{System#Data#SQLite#SQLiteConnection#\d+ Closed \{\} \{\} \{\} \{\}\}$}}
Index: readme.htm
==================================================================
--- readme.htm
+++ readme.htm
@@ -211,10 +211,11 @@
1.0.92.0 - March XX, 2014 (release scheduled)
- Updated to SQLite 3.8.4.
+ - Raise the static SQLiteConnection.Changed event when any SQLiteCommand or SQLiteDataReader object is disposed.
- When the TraceWarning connection flag is set, issue warnings about possibly malformed UNC paths. Pursuant to [283344397b].
- Enhancements to the NuGet packages, including the new "modular" packages.
1.0.91.0 - February 12, 2014
Index: www/news.wiki
==================================================================
--- www/news.wiki
+++ www/news.wiki
@@ -5,10 +5,11 @@
1.0.92.0 - March XX, 2014 (release scheduled)
- Updated to SQLite 3.8.4.
+ - Raise the static SQLiteConnection.Changed event when any SQLiteCommand or SQLiteDataReader object is disposed.
- When the TraceWarning connection flag is set, issue warnings about possibly malformed UNC paths. Pursuant to [283344397b].
- Enhancements to the NuGet packages, including the new "modular" packages.
1.0.91.0 - February 12, 2014