SEVERE: [127.0.0.1]:5701 [rx8081] [3.5.4] SQL [insert into "public"."users" ("id", "username", "password_hash", "email", "display_name", "first_name", "last_name", "phone", "birth_date", "notification_type", "pending_email") values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; ERROR: column "notification_type" is of type notification_type but expression is of type character varying
Hint: You will need to rewrite or cast the expression.
Position: 223
org.jooq.exception.DataAccessException: SQL [insert into "public"."users" ("id", "username", "password_hash", "email", "display_name", "first_name", "last_name", "phone", "birth_date", "notification_type", "pending_email") values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; ERROR: column "notification_type" is of type notification_type but expression is of type character varying
Hint: You will need to rewrite or cast the expression.
Position: 223
at org.jooq.impl.Utils.translate(Utils.java:1690)
at org.jooq.impl.DefaultExecuteContext.sqlException(DefaultExecuteContext.java:660)
at org.jooq.impl.AbstractQuery.execute(AbstractQuery.java:356)
at org.jooq.impl.TableRecordImpl.storeInsert0(TableRecordImpl.java:177)
at org.jooq.impl.TableRecordImpl$1.operate(TableRecordImpl.java:143)
at org.jooq.impl.RecordDelegate.operate(RecordDelegate.java:128)
at org.jooq.impl.TableRecordImpl.storeInsert(TableRecordImpl.java:139)
at org.jooq.impl.TableRecordImpl.insert(TableRecordImpl.java:132)
at org.jooq.impl.TableRecordImpl.insert(TableRecordImpl.java:127)
at org.jooq.impl.DAOImpl.insert(DAOImpl.java:161)
at org.jooq.impl.DAOImpl.insert(DAOImpl.java:140)
...
Caused by: org.postgresql.util.PSQLException: ERROR: column "notification_type" is of type notification_type but expression is of type character varying
Hint: You will need to rewrite or cast the expression.
Position: 223
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2182)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1911)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:173)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:645)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:495)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:441)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.postgresql.ds.jdbc23.AbstractJdbc23PooledConnection$StatementHandler.invoke(AbstractJdbc23PooledConnection.java:453)
at com.sun.proxy.$Proxy35.executeUpdate(Unknown Source)
at org.jooq.tools.jdbc.DefaultPreparedStatement.executeUpdate(DefaultPreparedStatement.java:88)
at org.jooq.impl.AbstractDMLQuery.execute(AbstractDMLQuery.java:397)
at org.jooq.impl.AbstractQuery.execute(AbstractQuery.java:342)
... 31 more