rmannibucau commented on a change in pull request #69: URL: https://github.com/apache/openjpa/pull/69#discussion_r456519781
########## File path: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java ########## @@ -2711,7 +2711,7 @@ private String getColumnAlias(Column col, PathJoins pj) { return alias + "_" + col; } alias = SelectImpl.toAlias(_sel.getTableIndex(col.getTable(), pj, false)); - return (alias == null) ? null : alias + "." + col; + return (alias == null) ? null : alias + "." + _sel._dict.getNamingUtil().toDBName(col.toString()); Review comment: you can likely create an assert on the select string directly - even using internals to instantiate it if it helps. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org