From 630b94fd12365c776e6ecc58ce4f66fd54869f2e Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Sun, 8 Jul 2007 09:18:32 +0000 Subject: [PATCH] * unregistered bug - clob should map to Text instead of bytea for postgresql. * increase log level to severe if blog or clob save failed with exception --- base/src/org/compiere/dbPort/ConvertMap_PostgreSQL.java | 2 +- base/src/org/compiere/model/PO_LOB.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base/src/org/compiere/dbPort/ConvertMap_PostgreSQL.java b/base/src/org/compiere/dbPort/ConvertMap_PostgreSQL.java index 5b48473e16..690dcc0c7a 100644 --- a/base/src/org/compiere/dbPort/ConvertMap_PostgreSQL.java +++ b/base/src/org/compiere/dbPort/ConvertMap_PostgreSQL.java @@ -31,7 +31,7 @@ public final class ConvertMap_PostgreSQL { s_pg.put("\\bNCHAR\\b", "CHAR"); //begin vpj-cd e-evolution 03/11/2005 PostgreSQL s_pg.put("\\bBLOB\\b", "BYTEA"); // BLOB not directly supported - s_pg.put("\\bCLOB\\b", "BYTEA"); // CLOB not directly supported + s_pg.put("\\bCLOB\\b", "TEXT"); // CLOB not directly supported s_pg.put("\\bLIMIT\\b","\"limit\""); s_pg.put("\\bACTION\\b","\"action\""); s_pg.put("\\bold\\b","\"old\""); diff --git a/base/src/org/compiere/model/PO_LOB.java b/base/src/org/compiere/model/PO_LOB.java index 0e711f901e..ab4d177f62 100644 --- a/base/src/org/compiere/model/PO_LOB.java +++ b/base/src/org/compiere/model/PO_LOB.java @@ -171,7 +171,7 @@ public class PO_LOB implements Serializable } catch (Exception e) { - log.log(Level.FINE, "[" + trxName + "] - " + sql, e); + log.log(Level.SEVERE, "[" + trxName + "] - " + sql, e); success = false; } // Close Statement