IDEMPIERE-708 Postgresql ERROR: date/time value "current" is no longer supported

This commit is contained in:
Carlos Ruiz 2013-03-07 17:41:12 -05:00
parent 901bfbc2ee
commit 6a9cdbe977
2 changed files with 3 additions and 3 deletions

View File

@ -133,7 +133,7 @@ public class ColumnSync extends SvrProcess
String statements[] = sql.split(DB.SQLSTATEMENT_SEPARATOR); String statements[] = sql.split(DB.SQLSTATEMENT_SEPARATOR);
for (int i = 0; i < statements.length; i++) 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]); addLog (0, null, new BigDecimal(count), statements[i]);
no += count; no += count;
} }

View File

@ -63,11 +63,11 @@ public final class ConvertMap_PostgreSQL {
s_pg.put("\\bBITMAP INDEX\\b", "INDEX"); s_pg.put("\\bBITMAP INDEX\\b", "INDEX");
// Functions // 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 //begin vpj-cd e-evolution 03/11/2005 PostgreSQL
s_pg.put("\\bDUMP\\b", "MD5"); s_pg.put("\\bDUMP\\b", "MD5");
s_pg.put("END CASE", "END"); 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 //end vpj-cd e-evolution 03/11/2005 PostgreSQL
s_pg.put("\\bNVL\\b", "COALESCE"); s_pg.put("\\bNVL\\b", "COALESCE");
s_pg.put("\\bTO_DATE\\b", "TO_TIMESTAMP"); s_pg.put("\\bTO_DATE\\b", "TO_TIMESTAMP");