JetDriver: Replace CASE expressions with something that's understandable by Access
Description
The first patch simplifies the SQL transformation function.
The second patch has the following effect: Change all (case when ... then ... else ... end) expressions into something like: IIf(IsNull(Switch(when_1, then_1, ... when_n, then_n)), else, Switch(when_1, then_1, ... when_n, then_n)) or (when no "else" part exists): Switch(when_1, then_1, ... when_n, then_n)
The first patch simplifies the SQL transformation function.
The second patch has the following effect:
Change all (case when ... then ... else ... end) expressions into something like:
IIf(IsNull(Switch(when_1, then_1, ... when_n, then_n)), else, Switch(when_1, then_1, ... when_n, then_n))
or (when no "else" part exists):
Switch(when_1, then_1, ... when_n, then_n)