[CONJ-221] Long cannot be cast to BigInteger Created: 2015-11-19 Updated: 2015-11-24 Resolved: 2015-11-19 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 1.3.1 |
| Fix Version/s: | 1.3.2 |
| Type: | Bug | Priority: | Critical |
| Reporter: | sfahren | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | BigInteger, ClassCastException, Long, | ||
| Environment: |
MariaDB Server 10.0 and 10.1 installation |
||
| Attachments: |
|
| Description |
|
On updating the mariaDB Connector from 1.1.8 to 1.3.1 a class cast exception is throwing on insert a long value to a BIGINTEGER column in the database. In version 1.1.8 it was posstible to create a prepared Statement with the method "setObject(1, valueLong, Types.BIGINT)". Now it throws at this point the exception. An executable example (from eclipse IDE) is in the attachment including the two connector jars. |
| Comments |
| Comment by Diego Dupin [ 2015-11-19 ] | ||||||||||||||||||||||||||||||||||||||
|
Corrected in futur correction release 1.3.2 Additionnal test case added :
|