Skip to content
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

Enum type cannot be used in async driver #32

Closed
jklingsporn opened this issue Feb 27, 2018 · 5 comments
Closed

Enum type cannot be used in async driver #32

jklingsporn opened this issue Feb 27, 2018 · 5 comments
Milestone

Comments

@jklingsporn
Copy link
Owner

Scala does not know how to handle the enum type so it has to be converted into a String.

cala.MatchError: ACTIVE (of class com.actility.thingpark.enterprise.channel.portal.storage.enums.ChannelStatus)
	at com.github.mauricio.async.db.mysql.binary.BinaryRowEncoder.encoderFor(BinaryRowEncoder.scala:88) ~[mysql-async_2.12-0.2.21.jar:0.2.21]
	at com.github.mauricio.async.db.mysql.encoder.PreparedStatementExecuteEncoder.encodeValue(PreparedStatementExecuteEncoder.scala:78) ~[mysql-async_2.12-0.2.21.jar:0.2.21]
	at com.github.mauricio.async.db.mysql.encoder.PreparedStatementExecuteEncoder.encodeValues(PreparedStatementExecuteEncoder.scala:61) ~[mysql-async_2.12-0.2.21.jar:0.2.21]
	at com.github.mauricio.async.db.mysql.encoder.PreparedStatementExecuteEncoder.encode(PreparedStatementExecuteEncoder.scala:39) ~[mysql-async_2.12-0.2.21.jar:0.2.21]
	at com.github.mauricio.async.db.mysql.codec.MySQLOneToOneEncoder.encode(MySQLOneToOneEncoder.scala:75) ~[mysql-async_2.12-0.2.21.jar:0.2.21]
	at com.github.mauricio.async.db.mysql.codec.MySQLOneToOneEncoder.encode(MySQLOneToOneEncoder.scala:35) ~[mysql-async_2.12-0.2.21.jar:0.2.21]
	at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:88) ~[netty-codec-4.1.19.Final.jar:4.1.19.Final]
	... 35 more
@quen2404
Copy link
Contributor

Another information about this: insertion works but not update.

@jklingsporn
Copy link
Owner Author

Can you try https://github.com/jklingsporn/vertx-jooq/tree/3.0.1 and see if it fixes the issues for you?

@quen2404
Copy link
Contributor

quen2404 commented Feb 27, 2018

Thank you for your reactivity ! But impossible to compile on my computer. Some classes are missing:

generated.classic.async.guice.enums.SomethingSomeenum;
generated.classic.async.regular.enums.SomethingSomeenum;
generated.rx.async.guice.enums.SomethingSomeenum;
generated.rx.async.regular.enums.SomethingSomeenum;
generated.cf.async.guice.enums.SomethingSomeenum;
generated.cf.async.regular.enums.SomethingSomeenum;

@jklingsporn
Copy link
Owner Author

Sorry, forgot to add them to git. Please try again.

@quen2404
Copy link
Contributor

No problem !
Compilation... OK
Runtime... OK
It works perfectly ! Thank you, you rock!

@jklingsporn jklingsporn modified the milestone: 3.0.1 Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants