[
https://issues.apache.org/jira/browse/OPENJPA-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard Zowalla resolved OPENJPA-2207.
--------------------------------------
Resolution: Fixed
Already fixed on master: 4659638a1 is on master. IdentifierUtilImpl.java:340
now treats names shorter than 3 characters as not delimited, so "1" is no
longer seen as already quoted; TestResultClsAnnotation/TestResultClsXml are
present. Closing; please reopen if this still happens with OpenJPA 4.x.
> Problems with numeric column name
> ---------------------------------
>
> Key: OPENJPA-2207
> URL: https://issues.apache.org/jira/browse/OPENJPA-2207
> Project: OpenJPA
> Issue Type: Bug
> Affects Versions: 1.0.0, 2.2.0
> Reporter: Dianne E. Richards
> Assignee: Dianne E. Richards
> Priority: Major
> Fix For: 1.2.3
>
>
> When a numeric column name is specified with a single number (ex: "1"),
> incorrect sql is generated. The sql is supposed to have a single set of
> double quotes around the name. Different incorrect sql is generated,
> depending on the release. For JPA 1.0 releases, there are no quotes (ex: 1).
> For JPA 2.0 releases, there are 2 sets of double quotes (ex: ""1""). This
> problem appears to exist for other DB identifiers also.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)