error when creating unique constraint
Closed this issue · 2 comments
davinwang commented
error happens when declaring a unique constraint:
@Column(name = "uk_column", unique = true)
public String uk_column;
It reports
Error` executing `DDL` "alter table dt_table add constraint UKjlid30ljaxbdig1jijlrcqejh unique (uk_column)" via JDBC [[SQLITE_ERROR]
The right DDL should be
create unique constraint UKjlid30ljaxbdig1jijlrcqejh on dt_table(uk_column)
alexeysharandin commented
Hi, looks like problem in Community Dialect and need to open issue for Hibernate Team.
davinwang commented
Thank you for giving the right direction.
从 Windows 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>发送
发件人: Alexey ***@***.***>
发送时间: 2023年7月31日 19:53
收件人: ***@***.***>
抄送: Davin ***@***.***>; ***@***.***>
主题: Re: [quarkiverse/quarkus-jdbc-sqlite] error when creating unique constraint (Issue #93)
Hi, looks like problem in Community Dialect<https://github.com/hibernate/hibernate-orm/blob/main/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/SQLiteDialect.java> and need to open issue for Hibernate Team.
―
Reply to this email directly, view it on GitHub<#93 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABKPKZ6L5UL5CQZ75D42ZSLXS6MDHANCNFSM6AAAAAA25YRXU4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>