leoroos/sandboxdroog — Issue #36: Not the most specific statement for a DSL transformation is taken
Author: leoroos
Created: 2011-10-18 15:35:52+00:00
State: open
Labels: Core, defect

=== Example ===

The statement
{{{
def q22 = SELECT "NAME","AGE" FROM "PERSONS" WHERE "AGE>20"
}}}
should produce
{{{
def q22 = selectFromWhere(
[
"NAME",
"AGE"
] as String[],
[
"PERSONS"
] as String[],
[
"AGE>20"
] as String[])
}}}
but instead the result is
{{{
def q22 = selectFrom(
[
"NAME",
"AGE"
] as String[],
[
"PERSONS"
] as String[]) WHERE "AGE>20"
}}}

The example is defined as a test in SimpleSQLDSLTest.

Currently acceptable, but should be re-checked when work on disambiguation are resolved in parallel work.