In SQLiteFunction.cs :
internal static bool UnbindAllFunctions(...
...
else
{
//
// NOTE: Need to use a copy of the function dictionary in
this method
// because the dictionary is modified within the
UnbindFunction
// method, which is called inside the loop.
//
lFunctions = new Dictionary<SQLiteFunctionAttribute,
SQLiteFunction>(
lFunctions);
foreach (KeyValuePair<SQLiteFunctionAttribute,
SQLiteFunction> pair
in lFunctions)
{
SQLiteFunctionAttribute pr = pair.Key;
if (pr == null)
continue;
SQLiteFunction f = pair.Value;
if ((f == null) ||
!UnbindFunction(sqlbase, pr, f, flags))
{
result = false;
}
}
}
===========
based on the comments, I'm wondering if it shouldn't look like this:
internal static bool UnbindAllFunctions(...
...
else
{
//
// NOTE: Need to use a copy of the function dictionary in
this method
// because the dictionary is modified within the
UnbindFunction
// method, which is called inside the loop.
//
lFunctions = new Dictionary<SQLiteFunctionAttribute,
SQLiteFunction>(
lFunctions);
foreach (KeyValuePair<SQLiteFunctionAttribute,
SQLiteFunction> pair
in lFunctions)
{
SQLiteFunctionAttribute pr = pair.Key;
if (pr == null)
continue;
SQLiteFunction f = pair.Value;
if ((f == null) ||
!sqlbase.UnbindFunction(pr, flags)) <<<===========
{
result = false;
}
}
}
Mark Benningfield
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users