Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMDgxNGNiM2Rl...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16252?atlOrigin=eyJpIjoiMDgxNG...
) HHH-16252 (
https://hibernate.atlassian.net/browse/HHH-16252?atlOrigin=eyJpIjoiMDgxNG...
) Syntax error on drop constraint (
https://hibernate.atlassian.net/browse/HHH-16252?atlOrigin=eyJpIjoiMDgxNG...
)
Issue Type: Bug Assignee: Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Components: hibernate-core Created: 04/Mar/2023 01:31 AM Fix Versions: 6.2.0 Priority:
Major Reporter: Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Having a constraint named “c” and a table named “t” the generated SQL to drop the
contraint is currently, using the PostgreSQL dialect:
alter table if exists public.t constraintif exists c
Leading to ERROR: syntax error at or near "constraintif" at character [..]
Investigating, it seems the problem is not specific to PostgreSQL but to any DB supporting
“if exists” syntax.
(
https://hibernate.atlassian.net/browse/HHH-16252#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16252#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100217- sha1:65be9f2 )