You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand your motivation here, but there are corner cases where it would break things (for example, an insert statement with a select).
I continue to believe that column aliases should be specified in the context of an individual select statement.
If you want a column to have a permanent alias, you can configure that currently in the xxxSqlSupport file. You would just need to test carefully to make sure it didn't break anything. Java makes this a little tricky because it doesn't propagate the generic type in chained method calls, but you can do it like this:
SqlColumn<Integer> col = column("id", JDBCType.INTEGER);
col = col.as("sub_id");
The text was updated successfully, but these errors were encountered: