Commit c020d67b authored by Barry Lind's avatar Barry Lind

Applied patch for jdbc from Kim Ho at RedHat to more correctly deal with boolean values

 Modified Files:
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
parent 292048f1
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* Copyright (c) 2003, PostgreSQL Global Development Group * Copyright (c) 2003, PostgreSQL Global Development Group
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1ResultSet.java,v 1.18 2003/09/13 04:02:15 barry Exp $ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1ResultSet.java,v 1.19 2003/09/17 07:00:24 barry Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -797,8 +797,8 @@ public abstract class AbstractJdbc1ResultSet implements BaseResultSet ...@@ -797,8 +797,8 @@ public abstract class AbstractJdbc1ResultSet implements BaseResultSet
{ {
if (s != null) if (s != null)
{ {
int c = s.charAt(0); s = s.trim();
return ((c == 't') || (c == 'T') || (c == '1')); return (s.equalsIgnoreCase("true") || s.equals("1") || s.equalsIgnoreCase("t"));
} }
return false; // SQL NULL return false; // SQL NULL
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment