System.Data.SQLite
Check-in [60a353537b]
Not logged in

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

Overview
Comment:When unbinding all functions from a connection, remove them from the internal dictionary as well.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 60a353537b15fe8f16fb88e47f62e28117bcf031
User & Date: mistachkin 2016-11-20 07:43:57
Context
2016-11-28
22:13
Update SQLite core library to the 3.15.2 release. check-in: e28b32319a user: mistachkin tags: trunk
2016-11-20
07:43
When unbinding all functions from a connection, remove them from the internal dictionary as well. check-in: 60a353537b user: mistachkin tags: trunk
2016-11-17
20:26
Add the 'AllowNestedTransactions' connection flag to enable using SAVEPOINTs to implement nested transactions. check-in: f73c069fb9 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

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

   993    993                   SQLiteFunctionAttribute pr = pair.Key;
   994    994   
   995    995                   if (pr == null)
   996    996                       continue;
   997    997   
   998    998                   SQLiteFunction f = pair.Value;
   999    999   
  1000         -                if ((f == null) ||
  1001         -                    !UnbindFunction(sqlbase, pr, f, flags))
         1000  +                if ((f != null) &&
         1001  +                    UnbindFunction(sqlbase, pr, f, flags))
         1002  +                {
         1003  +                    /* IGNORED */
         1004  +                    sqlbase.Functions.Remove(pr);
         1005  +                }
         1006  +                else
  1002   1007                   {
  1003   1008                       result = false;
  1004   1009                   }
  1005   1010               }
  1006   1011           }
  1007   1012   
  1008   1013           return result;