Resultset.getBoolean result on value that differ 0 and 1

Description

Driver return false when using Resultset.getBoolean on tinyInt with value > 1.
(That differ from the mysql driver which return true is this case.)

At the same time :

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 mysql> SELECT IF(0, 'true', 'false'); +------------------------+ | IF(0, 'true', 'false') | +------------------------+ | false | +------------------------+ mysql> SELECT IF(1, 'true', 'false'); +------------------------+ | IF(1, 'true', 'false') | +------------------------+ | true | +------------------------+ mysql> SELECT IF(2, 'true', 'false'); +------------------------+ | IF(2, 'true', 'false') | +------------------------+ | true | +------------------------+

This is inconsistent, driver must handle the same way

Environment

None

Status

Assignee

Diego Dupin

Reporter

Diego Dupin

Labels

None

External issue ID

None

External issue ID

None

Components

Fix versions

Affects versions

1.3.5
1.3.4
1.3.3
1.3.1
1.3.2

Priority

Minor