From e42c7c4c73b9ecdd293efebc30a19355296282b8 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Thu, 25 Jan 2007 03:01:47 +0000 Subject: [PATCH] * [ 1643996 ] Chat not working in postgres port --- dbPort/src/org/compiere/model/PO.java | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/dbPort/src/org/compiere/model/PO.java b/dbPort/src/org/compiere/model/PO.java index 8cb804f192..bf0dbab626 100644 --- a/dbPort/src/org/compiere/model/PO.java +++ b/dbPort/src/org/compiere/model/PO.java @@ -3163,18 +3163,15 @@ public abstract class PO return null; // Object retValue = null; - //begin vpj-cd e-Evolution 03/11/2005 PostgreSQL - if(DB.isPostgreSQL()||DB.isFyracle()) - { - byte buf[] = (byte[])value; - retValue = buf; - return retValue; - } - //end vpj-cd e-Evolution 03/11/2005 PostgreSQL + long length = -99; try { - if (value instanceof Clob) // returns String + //[ 1643996 ] Chat not working in postgres port + if (value instanceof String || + value instanceof byte[]) + retValue = value; + else if (value instanceof Clob) // returns String { Clob clob = (Clob)value; length = clob.length();