blanks after , in set no longer allowed...
Thursday, 1 November 2018 · 1 message
PV
Peter Villadsen1 Nov 2018 22:58 #
Hi
I installed version 9.1. the other day, and I found that my app did not work after that. A little debugging quickly identified the culprit.
When I submit queries to the backend I calculate a set of predefined variable bindings used in the queries. It turns out I did:
public string CalculateBindingsString(params Tuple<string, string>[] vars)
{
string result = string.Empty;
if (vars != null)
{
foreach (var v in vars)
{
var name = v.Item1;
var value = v.Item2;
if (ValidateVariableName(name))
{
if (result.Any())
result += ", ";
result += name + "=" + value;
}
}
}
return result;
}See the blank there? That caused the subsequent
USE
BINDINGS
call to fail. Removing the blank fixed it all. If this was part of a bug fix, the fix was a breaking change. Is there a list of such breaking changes for each release?
Best Regards
Peter Villadsen
Principal Architect
Microsoft Business Applications GroupWritten for BaseX 9.1. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery