WanWizard / Datamapper

Maintenance of Datamapper has been transferred to https://github.com/saekort/datamapper in 2012.
27 stars 3 forks source link

Implement reference to current table in sub-queries #16

Open froddd opened 12 years ago

froddd commented 12 years ago

Currently, subqueries allows referencing of the parent query table as ${parent}.fieldname.

In some cases (eg. when the column name might be deemed ambiguous), it would be useful to be able to reference the current subquery table as well.

The proposed way would be to follow the syntax for referencing the parent and use ${self}.fieldname.

WanWizard commented 12 years ago

Added to the Datamapper 1.x issue tracker: https://bitbucket.org/wanwizard/datamapper/issue/79/implement-reference-to-current-table-in