SmartClient Version: SNAPSHOT_v12.1d_2019-07-20/Enterprise Deployment (built 2019-07-20)
Hello, I've just noticed this behaviour. In a dataSource based on table="A", which includes a field from table B:
where I include another field from a table C without using the includeFrom attribute:
<field name="bar" tableName="C"/>
and the join with C is written in the tableClause:
I obtain a query formed like this:
which clearly doesn't work, while I was expecting this:
because I thought that the $defaultTableClause would contain the automatic ANSI joins.
Actually I could use the includeFrom also for the 'bar' field, but in the actual use case I have a condition for the join, which is something I can't express with the includeFrom attribute.
So I'm asking if it's a bug or a known limitation, as I don't see a note in the documentation against mixing includeFrom and explicit ANSI joins.
Hello, I've just noticed this behaviour. In a dataSource based on table="A", which includes a field from table B:
Code:
<field name="foo" includeFrom="B.foo"/>
<field name="bar" tableName="C"/>
and the join with C is written in the tableClause:
Code:
<tableClause> $defaultTableClause JOIN C ON B.ID = C.ID </tableClause>
Code:
FROM A JOIN C ON B.ID = C.ID JOIN B ON A.ID = B.ID
Code:
FROM A JOIN B ON A.ID = B.ID JOIN C ON B.ID = C.ID
Actually I could use the includeFrom also for the 'bar' field, but in the actual use case I have a condition for the join, which is something I can't express with the includeFrom attribute.
So I'm asking if it's a bug or a known limitation, as I don't see a note in the documentation against mixing includeFrom and explicit ANSI joins.
Comment