I have a column like "C.COMPANY_ID" where C is the alias for table
"COMPANY".
But ExpressionColumn.getAlias returns only "COMPANY_ID", but not
"C.COMPANY_ID".
Is it correct behavior?
Code:
public String getAlias() {
if (column != null) {
return column.getName();
}
if (tableAlias != null) {
return tableAlias + "." + columnName;
}
return columnName;
}
In my opinion it's better to first check if (tableAlias != null) and return
alias.column.
Original sql: select * from company c left join phone p on c.company_id =
p.company_id
I want this method to return c.company_id but not just company_id
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.