jmcnally 02/05/20 12:11:30
Modified: src/templates/om Peer.vm
Log:
patch by James A. Hillyerd <[EMAIL PROTECTED]>
When using Torque HEAD with PostgreSQL, BOOLEANCHAR doesn't work. The
attached patch fixes it by comparing the the value.asString() result
with both "Y" (original code) and "true" (what Village returns for
PostgreSQL).
Revision Changes Path
1.27 +4 -1 jakarta-turbine-torque/src/templates/om/Peer.vm
Index: Peer.vm
===================================================================
RCS file: /home/cvs/jakarta-turbine-torque/src/templates/om/Peer.vm,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- Peer.vm 29 Apr 2002 19:47:47 -0000 1.26
+++ Peer.vm 20 May 2002 19:11:29 -0000 1.27
@@ -319,10 +319,13 @@
{
#set ( $n=0 )
#set ( $boolean = "boolean" )
+ #set ( $String = "String" )
#foreach ($col in $table.Columns)
#if ($col.isBooleanChar())
- $boolean b = "Y".equals(row.getValue(offset+$n).$col.VillageMethod);
+ $String bString = row.getValue(offset+$n).$col.VillageMethod;
+ $boolean b = ("Y".equals(bString) || "true".equals(bString));
#set ( $boolean = "" )
+ #set ( $String = "" )
#if ($col.isUsePrimitive())
obj.set${col.JavaName}(b);
#else
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>