Table event_publication: value too long for type #471
Labels
in: event publication registry
Event publication registry
meta: waiting for feedback
Waiting for feedback of the original reporter
When saving an Event in PostgreSQL I get the following error:
Caused by: org.hibernate.exception.DataException: could not execute statement [ERROR: value too long for type character varying(255)] [insert into event_publication (completion_date,event_type,listener_id,publication_date,serialized_event,id) values (?,?,?,?,?,?)]
So then I forced that column to be of type bytea by creating an orm.xml in META-INF. Then I got this error:
org.hibernate.exception.SQLGrammarException: could not execute statement [ERROR: column "serialized_event" is of type bytea but expression is of type character varying
Hint: You will need to rewrite or cast the expression.
Position: 129] [insert into event_publication (completion_date,event_type,listener_id,publication_date,serialized_event,id) values (?,?,?,?,?,?)]
How to solve this?
The text was updated successfully, but these errors were encountered: