From e8d5b8d2901ddf1b4518ec0eb450028678f2082e Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 14 Sep 2001 17:40:41 +0000 Subject: [PATCH] Allow '1' in jdbc2 boolean test. --- src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java b/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java index bf41257111..9df669910d 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java @@ -1396,7 +1396,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu if (s != null) { int c = s.charAt(0); - return ((c == 't') || (c == 'T')); + return ((c == 't') || (c == 'T') || (c == '1')); } return false; // SQL NULL } -- 2.40.0