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) {