IDEMPIERE-3577 Replace now() - postgres specific - by sysdate
This commit is contained in:
parent
d6f2de3d7d
commit
524be5d6a3
|
@ -127,7 +127,7 @@ public class AcceptCtxHelpSuggestion extends SvrProcess {
|
||||||
} else {
|
} else {
|
||||||
StringBuilder insert = new StringBuilder("Insert Into AD_CtxHelpMsg_Trl (AD_Client_ID, AD_Org_ID, AD_CtxHelpMsg_ID, IsActive, IsTranslated, AD_Language, MsgText,");
|
StringBuilder insert = new StringBuilder("Insert Into AD_CtxHelpMsg_Trl (AD_Client_ID, AD_Org_ID, AD_CtxHelpMsg_ID, IsActive, IsTranslated, AD_Language, MsgText,");
|
||||||
insert.append("Created, CreatedBy, Updated, UpdatedBy, AD_CtxHelpMsg_Trl_UU)")
|
insert.append("Created, CreatedBy, Updated, UpdatedBy, AD_CtxHelpMsg_Trl_UU)")
|
||||||
.append(" Values (?, ?, ?, 'Y', 'N', ?, ?, now(), ?, now(), ?, generate_uuid()) ");
|
.append(" Values (?, ?, ?, 'Y', 'N', ?, ?, sysdate, ?, sysdate, ?, generate_uuid()) ");
|
||||||
List<Object> params = new ArrayList<Object>();
|
List<Object> params = new ArrayList<Object>();
|
||||||
params.add(AD_Client_ID);
|
params.add(AD_Client_ID);
|
||||||
params.add(0);
|
params.add(0);
|
||||||
|
|
|
@ -680,7 +680,7 @@ public class ADSortTab extends Panel implements IADTabpanel
|
||||||
.append(" SET ").append(m_ColumnSortName).append("=0");
|
.append(" SET ").append(m_ColumnSortName).append("=0");
|
||||||
if (m_ColumnYesNoName != null)
|
if (m_ColumnYesNoName != null)
|
||||||
sql.append(",").append(m_ColumnYesNoName).append("='N'");
|
sql.append(",").append(m_ColumnYesNoName).append("='N'");
|
||||||
sql.append(", Updated=Now(), UpdatedBy=").append(Env.getAD_User_ID(Env.getCtx()));
|
sql.append(", Updated=sysdate, UpdatedBy=").append(Env.getAD_User_ID(Env.getCtx()));
|
||||||
sql.append(" WHERE ").append(m_KeyColumnName).append("=").append(pp.getKey());
|
sql.append(" WHERE ").append(m_KeyColumnName).append("=").append(pp.getKey());
|
||||||
if (DB.executeUpdate(sql.toString(), null) == 1) {
|
if (DB.executeUpdate(sql.toString(), null) == 1) {
|
||||||
pp.setSortNo(0);
|
pp.setSortNo(0);
|
||||||
|
@ -710,7 +710,7 @@ public class ADSortTab extends Panel implements IADTabpanel
|
||||||
.append(" SET ").append(m_ColumnSortName).append("=").append(index);
|
.append(" SET ").append(m_ColumnSortName).append("=").append(index);
|
||||||
if (m_ColumnYesNoName != null)
|
if (m_ColumnYesNoName != null)
|
||||||
sql.append(",").append(m_ColumnYesNoName).append("='Y'");
|
sql.append(",").append(m_ColumnYesNoName).append("='Y'");
|
||||||
sql.append(", Updated=Now(), UpdatedBy=").append(Env.getAD_User_ID(Env.getCtx()));
|
sql.append(", Updated=sysdate, UpdatedBy=").append(Env.getAD_User_ID(Env.getCtx()));
|
||||||
sql.append(" WHERE ").append(m_KeyColumnName).append("=").append(pp.getKey());
|
sql.append(" WHERE ").append(m_KeyColumnName).append("=").append(pp.getKey());
|
||||||
if (DB.executeUpdate(sql.toString(), null) == 1) {
|
if (DB.executeUpdate(sql.toString(), null) == 1) {
|
||||||
pp.setSortNo(index);
|
pp.setSortNo(index);
|
||||||
|
|
|
@ -46,7 +46,7 @@ public class WCtxHelpSuggestion extends Window implements EventListener<Event> {
|
||||||
/**
|
/**
|
||||||
* generated serial id
|
* generated serial id
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = -8110247807841690907L;
|
private static final long serialVersionUID = 2068729997836800852L;
|
||||||
|
|
||||||
private ConfirmPanel confirmPanel;
|
private ConfirmPanel confirmPanel;
|
||||||
|
|
||||||
|
@ -239,7 +239,7 @@ public class WCtxHelpSuggestion extends Window implements EventListener<Event> {
|
||||||
} else {
|
} else {
|
||||||
StringBuilder insert = new StringBuilder("Insert Into AD_CtxHelpMsg_Trl (AD_Client_ID, AD_Org_ID, AD_CtxHelpMsg_ID, IsActive, IsTranslated, AD_Language, MsgText,");
|
StringBuilder insert = new StringBuilder("Insert Into AD_CtxHelpMsg_Trl (AD_Client_ID, AD_Org_ID, AD_CtxHelpMsg_ID, IsActive, IsTranslated, AD_Language, MsgText,");
|
||||||
insert.append("Created, CreatedBy, Updated, UpdatedBy, AD_CtxHelpMsg_Trl_UU)")
|
insert.append("Created, CreatedBy, Updated, UpdatedBy, AD_CtxHelpMsg_Trl_UU)")
|
||||||
.append(" Values (?, ?, ?, 'Y', 'N', ?, ?, now(), ?, now(), ?, generate_uuid()) ");
|
.append(" Values (?, ?, ?, 'Y', 'N', ?, ?, sysdate, ?, sysdate, ?, generate_uuid()) ");
|
||||||
List<Object> params = new ArrayList<Object>();
|
List<Object> params = new ArrayList<Object>();
|
||||||
params.add(0);
|
params.add(0);
|
||||||
params.add(0);
|
params.add(0);
|
||||||
|
|
Loading…
Reference in New Issue