1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-02 11:44:50 +03:00

Allow '1' in jdbc2 boolean test.

This commit is contained in:
Bruce Momjian 2001-09-14 17:40:41 +00:00
parent 2374be8a26
commit e8d5b8d290

View File

@ -1396,7 +1396,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu
if (s != null) if (s != null)
{ {
int c = s.charAt(0); int c = s.charAt(0);
return ((c == 't') || (c == 'T')); return ((c == 't') || (c == 'T') || (c == '1'));
} }
return false; // SQL NULL return false; // SQL NULL
} }