* [ 1643996 ] Chat not working in postgres port

This commit is contained in:
Heng Sin Low 2007-01-25 03:01:47 +00:00
parent d45217ee20
commit e42c7c4c73
1 changed files with 6 additions and 9 deletions

View File

@ -3163,18 +3163,15 @@ public abstract class PO
return null; return null;
// //
Object retValue = 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; long length = -99;
try 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; Clob clob = (Clob)value;
length = clob.length(); length = clob.length();