<< Back to previous view

[JDBC-84] Some JDBC drivers return a Boolean that is constructed and not identical to Clojure's true/false Created: 16/Dec/13  Updated: 01/Jun/16  Resolved: 16/Dec/13

Status: Closed
Project: java.jdbc
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Sean Corfield Assignee: Sean Corfield
Resolution: Completed Votes: 0
Labels: None


After some experimentation, I've discovered that certain JDBC drivers return the equivalent of (Boolean. true) and (Boolean. false) which are truthy/falsey but sometimes produce surprising results since they are not actually true and false. Extending the result set reading protocol to Boolean to turn them into canonical values via if seems to do the trick.

Comment by Sean Corfield [ 16/Dec/13 2:25 PM ]

A simple (if v true false) is not sufficient for this - it needs to be (if (= true v) true false) based on tests I've conducted. The problem is that the constructed (Boolean. false) value behaves as truthy.

Comment by Sean Corfield [ 16/Dec/13 3:13 PM ]

Added Boolean implementation to IResultSetReadColumn.

Generated at Sun Sep 24 21:46:44 CDT 2017 using JIRA 4.4#649-r158309.