vert-x / mod-mysql-postgresql

Vert.x 2.x is deprecated - use instead
http://vertx.io/docs/vertx-mysql-postgresql-client/java/
Apache License 2.0
49 stars 17 forks source link

mysql table with null values in rows results in an exception #23

Closed ghost closed 10 years ago

ghost commented 10 years ago

I have a mysql table with a bigint type column that has some rows values as null. When I send a prepared select query, I get the error below:

{"status":"error","message":null,"error":"MODULE_EXCEPTION"}

When I replaced the null values in the table with integer values it worked just fine.

I tried to search for "MODULE_EXCEPTION" in github in vertx, netty, and the module repositories but I couldn't find it.

I get the same error message when I tried with a column of type "varchar", so it seems null values (regardless of column type) causes an exception.

Thanks

Narigo commented 10 years ago

Will be fixed shortly.

ghost commented 10 years ago

Hi, I downloaded the branch 'execution..', then executed gradlew, replaced the mods files with the new ones, tried to run my code again, but I still get the same error "MODULE_EXCEPTION"

Narigo commented 10 years ago

Could you add a test? The new branch is not really ready for anything. I'm trying to fix all bugs and update to Scala 1.0.0-RC1 at the same time.

Narigo commented 10 years ago

I'll try to make fix it without the Scala 1.0.0 update at the same time now...

Narigo commented 10 years ago

Just pushed a new 0.3.0-SNAPSHOT which uses a new version of the underlying driver, Vert.x and does not involve Scala mod 1.0.0-RC1. Could you retry with this?

Thanks

Narigo commented 10 years ago

Guess this works now. If still an issue, please reopen!