System.Data.SQLite
Check-in [0f34d6ea03]
Not logged in

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

Overview
Comment:Slightly improve error handling in the SQLiteLog.Initialize method.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0f34d6ea0326e863a9a1a3fd3a83b868607e4966
User & Date: mistachkin 2019-05-14 20:22:41
Context
2019-05-15
01:08
Add additional tests for the SQLiteLog.Initialize method. Add 'No_SQLiteLog' environment variable to disable the SQLiteLog subsystem initialization. check-in: 232364a514 user: mistachkin tags: trunk
2019-05-14
20:22
Slightly improve error handling in the SQLiteLog.Initialize method. check-in: 0f34d6ea03 user: mistachkin tags: trunk
2019-04-05
02:40
In the test suite, when compiling C# code, skip emitting symbols. check-in: ca7215e405 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

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

   265    265                   {
   266    266                       _callback = new SQLiteLogCallback(LogCallback);
   267    267   
   268    268                       SQLiteErrorCode rc = _sql.SetLogCallback(_callback);
   269    269   
   270    270                       if (rc != SQLiteErrorCode.Ok)
   271    271                       {
          272  +                        _callback = null; /* UNDO */
          273  +
   272    274                           throw new SQLiteException(rc,
   273    275                               "Failed to configure managed assembly logging.");
   274    276                       }
   275    277                   }
   276    278   #endif
   277    279   
   278    280                   ///////////////////////////////////////////////////////////////