[CONJ-243] ResultSet.getString returns '1' on BOOLEAN-false values. Created: 2016-01-11 Updated: 2016-01-12 Resolved: 2016-01-12 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 1.3.3, 1.3.4 |
| Fix Version/s: | 1.3.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Andreas Pillath | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
'org.mariadb.jdbc:mariadb-java-client:1.3.4' |
||
| Issue Links: |
|
||||||||
| Description |
|
ResultSet.getString() returns "1" for BOOLEAN/TINYINT fields with '0' value.
This code prints
in version 1.3.4 and
in version 1.2.3 The problem seems to be in MariaDbValueObject, isBinaryEncoded=false, but the value 48='0' is evaluated as binary. Code-Snippet:
Values in debugger:
|
| Comments |
| Comment by Diego Dupin [ 2016-01-12 ] |
|
Thanks for reporting this. |