System.Data.SQLite

Check-in [60a353537b]
Login

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
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 60a353537b15fe8f16fb88e47f62e28117bcf031
User & Date: mistachkin 2016-11-20 07:43:57.618
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
Side-by-Side Diff Ignore Whitespace Patch
Changes to System.Data.SQLite/SQLiteFunction.cs.
993
994
995
996
997
998
999
1000
1001







1002
1003
1004
1005
1006
1007
1008
993
994
995
996
997
998
999


1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013







-
-
+
+
+
+
+
+
+







                SQLiteFunctionAttribute pr = pair.Key;

                if (pr == null)
                    continue;

                SQLiteFunction f = pair.Value;

                if ((f == null) ||
                    !UnbindFunction(sqlbase, pr, f, flags))
                if ((f != null) &&
                    UnbindFunction(sqlbase, pr, f, flags))
                {
                    /* IGNORED */
                    sqlbase.Functions.Remove(pr);
                }
                else
                {
                    result = false;
                }
            }
        }

        return result;