System.Data.SQLite
Check-in [ad12fa479a]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Also raise the static SQLiteConnection.Changed event when any SQLiteDataReader object is closed.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ad12fa479ab965b20b8799a4415055d7064e2652
User & Date: mistachkin 2014-03-06 09:00:26
Context
2014-03-06
20:34
Add copyright notice. check-in: 4e5fae7090 user: mistachkin tags: trunk
09:00
Also raise the static SQLiteConnection.Changed event when any SQLiteDataReader object is closed. check-in: ad12fa479a user: mistachkin tags: trunk
08:12
Raise the static SQLiteConnection.Changed event when any SQLiteCommand or SQLiteDataReader object is disposed. check-in: 6eea79dc10 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to Doc/Extra/Provider/version.html.

    42     42       </div>
    43     43       <div id="mainSection">
    44     44       <div id="mainBody">
    45     45       <h1 class="heading">Version History</h1>
    46     46       <p><b>1.0.92.0 - March XX, 2014 <font color="red">(release scheduled)</font></b></p>
    47     47       <ul>
    48     48         <li>Updated to <a href="http://www.sqlite.org/src/info/trunk">SQLite 3.8.4</a>.</li>
    49         -      <li>Raise the static SQLiteConnection.Changed event when any SQLiteCommand or SQLiteDataReader object is disposed.</li>
           49  +      <li>Raise the static SQLiteConnection.Changed event when any SQLiteCommand or SQLiteDataReader object is closed or disposed.</li>
    50     50         <li>When the TraceWarning connection flag is set, issue warnings about possibly malformed UNC paths. Pursuant to <a href="http://system.data.sqlite.org/index.html/info/283344397b">[283344397b]</a>.</li>
    51     51         <li>Enhancements to the NuGet packages, including the new &quot;modular&quot; packages.</li>
    52     52       </ul>
    53     53       <p><b>1.0.91.0 - February 12, 2014</b></p>
    54     54       <ul>
    55     55         <li>Updated to <a href="http://www.sqlite.org/releaselog/3_8_3_1.html">SQLite 3.8.3.1</a>.</li>
    56     56         <li>Refresh all included SQLite core library documentation (e.g. SQL syntax).</li>

Changes to System.Data.SQLite/SQLiteConvert.cs.

  1424   1424         /// A command is being disposed.
  1425   1425         /// </summary>
  1426   1426         DisposingCommand = 12,
  1427   1427   
  1428   1428         /// <summary>
  1429   1429         /// A data reader is being disposed.
  1430   1430         /// </summary>
  1431         -      DisposingDataReader = 13
         1431  +      DisposingDataReader = 13,
         1432  +
         1433  +      /// <summary>
         1434  +      /// A data reader is being closed.
         1435  +      /// </summary>
         1436  +      ClosingDataReader = 14
  1432   1437     }
  1433   1438   
  1434   1439     /// <summary>
  1435   1440     /// This implementation of SQLite for ADO.NET can process date/time fields in
  1436   1441     /// databases in one of six formats.
  1437   1442     /// </summary>
  1438   1443     /// <remarks>

Changes to System.Data.SQLite/SQLiteDataReader.cs.

   181    181   
   182    182       /// <summary>
   183    183       /// Closes the datareader, potentially closing the connection as well if CommandBehavior.CloseConnection was specified.
   184    184       /// </summary>
   185    185       public override void Close()
   186    186       {
   187    187         CheckDisposed();
          188  +
          189  +      SQLiteConnection.OnChanged(GetConnection(this),
          190  +          new ConnectionEventArgs(SQLiteConnectionEventType.ClosingDataReader,
          191  +          null, null, _command, this, null, null, new object[] { _commandBehavior,
          192  +          _readingState, _rowsAffected, _fieldCount, _disposeCommand,
          193  +          _throwOnDisposed }));
   188    194   
   189    195         try
   190    196         {
   191    197           if (_command != null)
   192    198           {
   193    199             try
   194    200             {

Changes to Tests/tkt-aba4549801.eagle.

    77     77   System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
    78     78   \{System#Data#SQLite#SQLiteConnection#\d+ NewDataReader \{\}\
    79     79   System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
    80     80   \{\}\} \{System#Object#\d+ NewCriticalHandle \{\} \{\} \{\}\
    81     81   System#Data#SQLite#SQLiteStatementHandle#\d+\}\
    82     82   \{System#Data#SQLite#SQLiteConnection#\d+ DisposingDataReader \{\}\
    83     83   System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
           84  +\{\}\} \{System#Data#SQLite#SQLiteConnection#\d+ ClosingDataReader \{\}\
           85  +System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
    84     86   \{\}\} \{System#Data#SQLite#SQLiteConnection#\d+ DisposingCommand \{\}\
    85     87   System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
    86     88   \{System#Data#SQLite#SQLiteConnection#\d+ NewCommand \{\}\
    87     89   System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
    88     90   \{System#Data#SQLite#SQLiteConnection#\d+ NewDataReader \{\}\
    89     91   System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
    90     92   \{\}\} \{System#Object#\d+ NewCriticalHandle \{\} \{\} \{\}\
    91     93   System#Data#SQLite#SQLiteStatementHandle#\d+\}\
    92     94   \{System#Data#SQLite#SQLiteConnection#\d+ DisposingDataReader \{\}\
           95  +System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
           96  +\{\}\} \{System#Data#SQLite#SQLiteConnection#\d+ ClosingDataReader \{\}\
    93     97   System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
    94     98   \{\}\} \{System#Data#SQLite#SQLiteConnection#\d+ DisposingCommand \{\}\
    95     99   System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
    96    100   \{System#Data#SQLite#SQLiteConnection#\d+ NewCommand \{\}\
    97    101   System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
    98    102   \{System#Data#SQLite#SQLiteConnection#\d+ NewDataReader \{\}\
    99    103   System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
   100    104   \{\}\} \{System#Object#\d+ NewCriticalHandle \{\} \{\} \{\}\
   101    105   System#Data#SQLite#SQLiteStatementHandle#\d+\}\
   102    106   \{System#Data#SQLite#SQLiteConnection#\d+ DisposingDataReader \{\}\
          107  +System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
          108  +\{\}\} \{System#Data#SQLite#SQLiteConnection#\d+ ClosingDataReader \{\}\
   103    109   System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
   104    110   \{\}\} \{System#Data#SQLite#SQLiteConnection#\d+ DisposingCommand \{\}\
   105    111   System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
   106    112   \{System#Data#SQLite#SQLiteConnection#\d+ NewTransaction\
   107    113   System#Data#SQLite#SQLiteTransaction#\d+ \{\} \{\} \{\}\}\
   108    114   \{System#Data#SQLite#SQLiteConnection#\d+ NewCommand \{\}\
   109    115   System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
   110    116   \{System#Data#SQLite#SQLiteConnection#\d+ NewDataReader \{\}\
   111    117   System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
   112    118   \{\}\} \{System#Object#\d+ NewCriticalHandle \{\} \{\} \{\}\
   113    119   System#Data#SQLite#SQLiteStatementHandle#\d+\} \{System#Object#\d+\
   114    120   NewCriticalHandle \{\} \{\} \{\} System#Data#SQLite#SQLiteStatementHandle#\d+\}\
   115         -\{System#Data#SQLite#SQLiteConnection#\d+ DisposingCommand \{\}\
          121  +\{System#Data#SQLite#SQLiteConnection#\d+ ClosingDataReader \{\}\
          122  +System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
          123  +\{\}\} \{System#Data#SQLite#SQLiteConnection#\d+ DisposingCommand \{\}\
   116    124   System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
   117    125   \{System#Data#SQLite#SQLiteConnection#\d+ NewCommand \{\}\
   118    126   System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
   119    127   \{System#Data#SQLite#SQLiteConnection#\d+ NewDataReader \{\}\
   120    128   System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
   121    129   \{\}\} \{System#Object#\d+ NewCriticalHandle \{\} \{\} \{\}\
   122    130   System#Data#SQLite#SQLiteStatementHandle#\d+\}\
   123    131   \{System#Data#SQLite#SQLiteConnection#\d+ DisposingDataReader \{\}\
          132  +System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
          133  +\{\}\} \{System#Data#SQLite#SQLiteConnection#\d+ ClosingDataReader \{\}\
   124    134   System#Data#SQLite#SQLiteCommand#\d+ System#Data#SQLite#SQLiteDataReader#\d+\
   125    135   \{\}\} \{System#Data#SQLite#SQLiteConnection#\d+ DisposingCommand \{\}\
   126    136   System#Data#SQLite#SQLiteCommand#\d+ \{\} \{\}\}\
   127    137   \{System#Data#SQLite#SQLiteConnection#\d+ Closing \{\} \{\} \{\} \{\}\}\
   128    138   \{System#Data#SQLite#SQLiteConnection#\d+ Closed \{\} \{\} \{\} \{\}\}\
   129    139   \{System#Data#SQLite#SQLiteConnection#\d+ Closing \{\} \{\} \{\} \{\}\}\
   130    140   \{System#Data#SQLite#SQLiteConnection#\d+ Closed \{\} \{\} \{\} \{\}\}$}}
   131    141   
   132    142   ###############################################################################
   133    143   
   134    144   runSQLiteTestEpilogue
   135    145   runTestEpilogue

Changes to readme.htm.

   209    209   <h2><b>Version History</b></h2>
   210    210   
   211    211   <p>
   212    212       <b>1.0.92.0 - March XX, 2014 <font color="red">(release scheduled)</font></b>
   213    213   </p>
   214    214   <ul>
   215    215       <li>Updated to <a href="http://www.sqlite.org/src/info/trunk">SQLite 3.8.4</a>.</li>
   216         -    <li>Raise the static SQLiteConnection.Changed event when any SQLiteCommand or SQLiteDataReader object is disposed.</li>
          216  +    <li>Raise the static SQLiteConnection.Changed event when any SQLiteCommand or SQLiteDataReader object is closed or disposed.</li>
   217    217       <li>When the TraceWarning connection flag is set, issue warnings about possibly malformed UNC paths. Pursuant to [283344397b].</li>
   218    218       <li>Enhancements to the NuGet packages, including the new &quot;modular&quot; packages.</li>
   219    219   </ul>
   220    220   <p>
   221    221       <b>1.0.91.0 - February 12, 2014</b>
   222    222   </p>
   223    223   <ul>

Changes to www/news.wiki.

     3      3   <b>Version History</b>
     4      4   
     5      5   <p>
     6      6       <b>1.0.92.0 - March XX, 2014 <font color="red">(release scheduled)</font></b>
     7      7   </p>
     8      8   <ul>
     9      9       <li>Updated to <a href="http://www.sqlite.org/src/info/trunk">SQLite 3.8.4</a>.</li>
    10         -    <li>Raise the static SQLiteConnection.Changed event when any SQLiteCommand or SQLiteDataReader object is disposed.</li>
           10  +    <li>Raise the static SQLiteConnection.Changed event when any SQLiteCommand or SQLiteDataReader object is closed or disposed.</li>
    11     11       <li>When the TraceWarning connection flag is set, issue warnings about possibly malformed UNC paths. Pursuant to [283344397b].</li>
    12     12       <li>Enhancements to the NuGet packages, including the new &quot;modular&quot; packages.</li>
    13     13   </ul>
    14     14   <p>
    15     15       <b>1.0.91.0 - February 12, 2014</b>
    16     16   </p>
    17     17   <ul>