FCO / Red

A WiP ORM for Raku
Artistic License 2.0
68 stars 27 forks source link

Alter func translation so column names don't get aliases #550

Closed jonathanstowe closed 2 years ago

jonathanstowe commented 2 years ago

If the function is used in a subselect with a Red::Column argument it was using the 'select' candidate for the translate of the args which was in turn adding the 'as' alias to the attribute name. This is a syntax error in at least Pg.

This addresses a problem found in #514