// if we are here, it wasn't a boolean or null, so try to grab a string instead
finalStringbool=rs.getString(index);//.toUpperCase(); // do we want it case-insensitive?
finalbooleanret=YES.equals(bool);
if(!ret&&!NO.equals(bool))
thrownewMapperException(String.format("Implicit conversion of database string to boolean failed on column '%d'. Returned string needs to be 'Y' or 'N' and was instead '%s'.",index,bool));
thrownewMapperException(String.format("Implicit conversion of database string to boolean failed on column '%d'. Returned string needs to be 'Y' or 'N' and was instead 'null'. If you want to accept null values, make it an object Boolean instead of primitive boolean.",index));