IDEMPIERE-708 Postgresql ERROR: date/time value "current" is no longer supported
This commit is contained in:
parent
901bfbc2ee
commit
6a9cdbe977
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue