System.Data.SQLite
Check-in [6331a7209e]
Not logged in

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

Overview
Comment:Disallow nested transactions by default.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6331a7209ec2a304dc225d52befe80ce34287a3e
User & Date: mistachkin 2016-11-04 00:26:16
References
2016-11-08
18:55
Back out the change in [6331a7209e] as one of the legacy tests depends on its previous behavior. check-in: 470cbf3de9 user: mistachkin tags: trunk
Context
2016-11-04
20:19
Update SQLite core library to the 3.15.1 release. check-in: 58e5128d4c user: mistachkin tags: trunk
02:00
Add 'AllowNestedTransactions' connection flag to enable nested transactions. check-in: ffd3c1b1d8 user: mistachkin tags: tkt-1f7bfff467
00:26
Disallow nested transactions by default. check-in: 6331a7209e user: mistachkin tags: trunk
00:20
Make the SQLiteTransaction.IssueRollback method private. check-in: d3ee02a73a user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

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

    68     68                   {
    69     69                       _cnn._transactionLevel--;
    70     70                       _cnn = null;
    71     71   
    72     72                       throw;
    73     73                   }
    74     74               }
           75  +            else
           76  +            {
           77  +                throw new SQLiteException("Transaction is already active on this connection");
           78  +            }
    75     79           }
    76     80   
    77     81           ///////////////////////////////////////////////////////////////////////////////////////////////
    78     82   
    79     83           #region IDisposable "Pattern" Members
    80     84           private bool disposed;
    81     85           private void CheckDisposed() /* throw */