-
Notifications
You must be signed in to change notification settings - Fork 695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PostgreSQL] Table with customEnumeration column doesn't work with Entity/DAO API #340
Comments
I am having same trouble with update using DAO.
When I do
Any help would be appreciated. |
@bvjebin, Which version of Exposed do you use? |
@Tapac 0.11.2 |
Getting this one too, version Here's the call stack when the issue crops up: Here's the call stack when there's no issue: Both of these call stacks originate from the exact same place in code. There's no obvious difference between the DAO objects being used in the two calls. Same transaction. |
I have a table which uses PostgreSQL enum type. I followed the example in wiki in how to declare it in an Exposed table. I also created an entity class for the table. Something like this:
Using the entity, there is no problem in inserting new row:
But when I tried to query it, there is a cast exception something like
can't cast PGEnum to String
invalueFromDB
function ofColumnType
.If I do an insert using DSL API and then querying it, it works as expected.
Any idea?
The text was updated successfully, but these errors were encountered: