From: Bruce Momjian Date: Wed, 16 May 2001 16:30:38 +0000 (+0000) Subject: Change the line: X-Git-Tag: REL7_2_BETA1~1267 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01cc344011392f002636ce5014ca532d27306a25;p=postgresql Change the line: return ((c == 't') || (c == 'T')); int the getBoolean function on line 184:ish to: return ((c == 't') || (c == 'T') (c == '1')); Hunter Hillegas --- diff --git a/src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java b/src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java index 6c93c7a276..aae8cf6ff2 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java @@ -190,7 +190,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 } diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java b/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java index 561614b33a..54865d8e3f 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java @@ -198,7 +198,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 }