The following patch IMHO corrects the behaviour of BOOLEANINT columns from

0                       false
1                       true
everything else         false

into

0                       false
everything else         true

which is IMHO the more sane and intuitive (and what languages like e.g. C
use... :-)

--- cut ---
+++ src/templates/om/Peer.vm    6 Sep 2002 17:02:11 -0000
@@ -353,7 +353,7 @@
             obj.set${col.JavaName}(b ? Boolean.TRUE : Boolean.FALSE);
                 #end
             #elseif ($col.isBooleanInt())
-            $boolean b = (row.getValue(offset + $n).$col.VillageMethod == 1);
+            $boolean b = (row.getValue(offset + $n).$col.VillageMethod != 0);
                 #set ( $boolean = "" )
                 #if ($col.isUsePrimitive())
             obj.set${col.JavaName}(b);
--- cut ---

        Regards
                Henning

(Yes, I know, I can apply the patches to the CVS repository myself but I'm quite
out of the loop concerning Torque and I want to run this by the core developers
who work on this stuff all day)

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     [EMAIL PROTECTED]

Am Schwabachgrund 22  Fon.: 09131 / 50654-0   [EMAIL PROTECTED]
D-91054 Buckenhof     Fax.: 09131 / 50654-20   

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to