Does this make sense?

37 views
Skip to first unread message

Rinse Lemstra

unread,
Sep 9, 2025, 10:01:53 AMSep 9
to H2 Database
How to avoid this exception.  I already have the "IF NOT EXISTS" clause in the statement, still it ends with the exception  object already exists...

"java.lang.RuntimeException: object already exists: CHAT_MESSAGE"; SQL statement:
CREATE LINKED TABLE IF NOT EXISTS CHAT_MESSAGE ( 'org.h2.Driver', 'jdbc:h2:file:......

regards,

Rinse

Noel Grandin

unread,
Sep 11, 2025, 1:18:24 PMSep 11
to h2-da...@googlegroups.com
Do you have some other object that is not a LINKED TABLE that has the name "CHAT_MESSAGE" ?

--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2-database...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/h2-database/70a13aea-ae6c-4d0e-b202-d435a939cbfen%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages