From 965d758eae54752e1888c80face34a441bb42703 Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 28 Jan 2003 14:53:22 +0000 Subject: [PATCH] Convert boolean to integer in getIntegerValue() --- src/helma/objectmodel/db/Property.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/helma/objectmodel/db/Property.java b/src/helma/objectmodel/db/Property.java index de35dddf..33468c43 100644 --- a/src/helma/objectmodel/db/Property.java +++ b/src/helma/objectmodel/db/Property.java @@ -277,6 +277,8 @@ public final class Property implements IProperty, Serializable, Cloneable { return ((Long) value).longValue (); if (type == FLOAT) return ((Double) value).longValue (); + if (type == BOOLEAN) + return ((Boolean) value).booleanValue() ? 1 : 0; try { return Long.parseLong (getStringValue()); } catch (Exception x) {