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
REL7_2_STABLE
Bruce Momjian 25 years ago
parent 9cdf723142
commit 01cc344011
  1. 2
      src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java
  2. 2
      src/interfaces/jdbc/org/postgresql/jdbc2/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
}

@ -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
}

Loading…
Cancel
Save