From 6a9cdbe97771fab4ad198a6f4c84ef58a4ffb57e Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 7 Mar 2013 17:41:12 -0500 Subject: [PATCH] IDEMPIERE-708 Postgresql ERROR: date/time value "current" is no longer supported --- .../src/org/compiere/process/ColumnSync.java | 2 +- .../src/org/compiere/dbPort/ConvertMap_PostgreSQL.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/org.adempiere.base.process/src/org/compiere/process/ColumnSync.java b/org.adempiere.base.process/src/org/compiere/process/ColumnSync.java index 7e54fca391..1035c2d5a3 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ColumnSync.java +++ b/org.adempiere.base.process/src/org/compiere/process/ColumnSync.java @@ -133,7 +133,7 @@ public class ColumnSync extends SvrProcess String statements[] = sql.split(DB.SQLSTATEMENT_SEPARATOR); for (int i = 0; i < statements.length; i++) { - int count = DB.executeUpdate(statements[i], false, get_TrxName()); + int count = DB.executeUpdateEx(statements[i], get_TrxName()); addLog (0, null, new BigDecimal(count), statements[i]); no += count; } diff --git a/org.compiere.db.postgresql.provider/src/org/compiere/dbPort/ConvertMap_PostgreSQL.java b/org.compiere.db.postgresql.provider/src/org/compiere/dbPort/ConvertMap_PostgreSQL.java index 8a387607fd..56b95b6b67 100644 --- a/org.compiere.db.postgresql.provider/src/org/compiere/dbPort/ConvertMap_PostgreSQL.java +++ b/org.compiere.db.postgresql.provider/src/org/compiere/dbPort/ConvertMap_PostgreSQL.java @@ -63,11 +63,11 @@ public final class ConvertMap_PostgreSQL { s_pg.put("\\bBITMAP INDEX\\b", "INDEX"); // Functions - s_pg.put("\\bSYSDATE\\b", "CURRENT_TIMESTAMP"); // alternative: NOW() + s_pg.put("\\bSYSDATE\\b", "now()"); //begin vpj-cd e-evolution 03/11/2005 PostgreSQL s_pg.put("\\bDUMP\\b", "MD5"); s_pg.put("END CASE", "END"); - s_pg.put("\\bgetDate\\b\\(\\)", "CURRENT_TIMESTAMP"); // alternative: NOW() + s_pg.put("\\bgetDate\\b\\(\\)", "now()"); //end vpj-cd e-evolution 03/11/2005 PostgreSQL s_pg.put("\\bNVL\\b", "COALESCE"); s_pg.put("\\bTO_DATE\\b", "TO_TIMESTAMP");