[
https://issues.apache.org/jira/browse/OPENJPA-3079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18143856#comment-18143856
]
ASF subversion and git services commented on OPENJPA-3079:
----------------------------------------------------------
Commit a74715d1fe49347c905f357c3c3c2189ae193bcb in openjpa's branch
refs/heads/master from Richard Zowalla
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=a74715d1f ]
[OPENJPA-3079] Build the default name of a multi-column index from the column
names without their delimiters (#307)
* [OPENJPA-3079] Build the default name of a multi-column index from the column
names without their delimiters
* [OPENJPA-3079] Add the issue to the release notes
---------
Co-authored-by: Maxim Solodovnik <[email protected]>
> Default index name contains the delimiters of a delimited column name
> ---------------------------------------------------------------------
>
> Key: OPENJPA-3079
> URL: https://issues.apache.org/jira/browse/OPENJPA-3079
> Project: OpenJPA
> Issue Type: Bug
> Components: jdbc
> Reporter: Richard Zowalla
> Assignee: Richard Zowalla
> Priority: Major
> Fix For: 4.2.0
>
>
> When a default index name is built from a column whose name is delimited,
> e.g. a field mapped with @Column(name = "\"rank\"") and an @Index(columnList
> = "rank, window") on the table, the delimiters end up inside the generated
> index name: I_Order_"rank"_window on Derby and PostgreSQL, and
> `I_Order_rank"_"window` (double quotes inside the back ticks) on MySQL. The
> index name should be built from the column names without their delimiters and
> then be made valid (and delimited if needed) as a whole.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)