rmannibucau commented on a change in pull request #69: URL: https://github.com/apache/openjpa/pull/69#discussion_r456494234
########## File path: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java ########## @@ -329,10 +341,19 @@ public Column getColumn(String name) { return getColumn(DBIdentifier.newIdentifier(name, DBIdentifierType.COLUMN, true)); } - public Column getColumn(DBIdentifier name) { + private Column internalGetColumn(DBIdentifier name) { if (DBIdentifier.isNull(name) || _colMap == null) return null; - return _colMap.get(DBIdentifier.toUpper(name)); + DBIdentifier key = normalizeColumnKey(name); + return _colMap.get(key); + } + + public Column getColumn(DBIdentifier name) { + return internalGetColumn(name); + } + + private DBIdentifier normalizeColumnKey(DBIdentifier name) { + return DBIdentifier.removeDelimiters(DBIdentifier.toUpper(name, true)); Review comment: the identifier should always (i know a few cases where it is not the case but shouldnt impact you or means it must be fixed) be created from the dict so just inject that state in the identifier? Makes sense to me to know if the identifier had been quoted or not and does not require a single signature change in methods. ---------------------------------------------------------------- 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