[CONJ-524] java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String Created: 2017-09-12 Updated: 2017-11-20 Resolved: 2017-11-20 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | JDBC 4.2 compatibility |
| Affects Version/s: | 1.5.9 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Blocker |
| Reporter: | banesh banna | Assignee: | Diego Dupin |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Environment: |
java 1.7 with 1.5.9 version. |
||
| Description |
|
public <T> T getObject(String columnLabel, Class<T> type) throws SQLException; integer column reading as string .But iam passing class as second parameter to getObject Method. In mysql the value returning as String . |
| Comments |
| Comment by Diego Dupin [ 2017-09-12 ] | |||||||||||||
|
Hi banesh I've test this with mysql/mariadb connector with different version without any issue :
resulting in : | |||||||||||||
| Comment by Diego Dupin [ 2017-11-20 ] | |||||||||||||
|
closing since having no answer. |