Re: [JDBC] JDBC String to Bool spec - Mailing list pgsql-jdbc

From Vladimir Sitnikov
Subject Re: [JDBC] JDBC String to Bool spec
Date
Msg-id CAB=Je-GQmTrH1w-Y2z-4tR5Qr_nOcey8==5Mueftn6enhGNvLw@mail.gmail.com
Whole thread Raw
In response to Re: [JDBC] JDBC String to Bool spec  (Jorge Solórzano <jorsol@gmail.com>)
List pgsql-jdbc
>when execute rs.getBoolean(1), it gets false, but it should be an cannotCastException.

I'm not sure what is the ultimate right thing there (please forgive me I did not follow the thread), however I'm quite sure we cannot just break things "for no obvious reason".

Of course, major version change like 9.4 -> 42.0 allows us to break things, however I'm not fan of breaking too much at the same time.

Just in case: java.lang.Boolean#valueOf(java.lang.String) does not throw on bad input.

Vladimir

pgsql-jdbc by date:

Previous
From: Mark Rotteveel
Date:
Subject: Re: [JDBC] JDBC String to Bool spec
Next
From: Mark Rotteveel
Date:
Subject: Re: JDBC String to Bool spec