jon 2002/09/19 00:51:56
Modified: src/java/org/apache/torque/adapter DBPostgres.java
Log:
patch from Shun-ichi GOTO <[EMAIL PROTECTED]> to fix the boolean return
Revision Changes Path
1.12 +2 -2
jakarta-turbine-torque/src/java/org/apache/torque/adapter/DBPostgres.java
Index: DBPostgres.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/adapter/DBPostgres.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- DBPostgres.java 13 Sep 2002 05:06:38 -0000 1.11
+++ DBPostgres.java 19 Sep 2002 07:51:56 -0000 1.12
@@ -192,7 +192,7 @@
*/
public String getBooleanString(Boolean b)
{
- return (b == null) ? "0" : "1";
+ return (b == null) ? "0" : (Boolean.TRUE.equals(b) ? "1" : "0"); }
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>