[CONJ-185] MySQLPreparedStatement.setObject cannot handle java.lang.Character type Created: 2015-08-18 Updated: 2020-08-17 Resolved: 2015-09-15 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 1.1.7, 1.1.8, 1.1.9, 1.2.0 |
| Fix Version/s: | 1.3.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Vikram Goghari | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
If setting a CHAR(1) database field, using Java char's or java.lang.Character, setObject fails with:
So where,
Object x is of type java.lang.Character This can be fixed by adding a check for Character type, in setObject:
|
| Comments |
| Comment by Diego Dupin [ 2015-09-15 ] |
|
corrected in 1.3.0. |
| Comment by Riccardo Paolo Bestetti [ 2020-08-17 ] |
|
Issue still present in 2.6.2 |