[CONJ-377] org.mariadb.jdbc.Driver EnumType cannot load ordinal Created: 2016-10-21 Updated: 2021-05-17 Resolved: 2021-05-17 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 1.5.4 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | YuCheng Hu | Assignee: | Diego Dupin |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Description |
|
In hibernate, we have
If we use mariadb JDBC, we will get SQL ERROR: Incorrect integer value: 'IN_TRANSIT' for column 'shipment_status' at row 1 Because, we set int for column shipment_status. mariadb JDBC didn't use IN_TRANSIT' ordinal as value. If we switch JDBC to Mysql Connector/J, the SQL will insert ordinal value to database. |
| Comments |
| Comment by Diego Dupin [ 2016-11-07 ] | |||||||||
|
Hi, thanks for reporting the issue. I've tried different things, like :
Entity field :
but ordinal value was well set every time. (I've tried with int and varchar field) Can you provide more information on your issue (DDL for example) ? | |||||||||
| Comment by Diego Dupin [ 2019-09-13 ] | |||||||||
|
closing since no answer |