From d86f009afd063712d98612fd0f70d6a5653ce6ed Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 9 Apr 2007 15:26:12 +0000 Subject: [PATCH] * remove derby and fyracle from trunk --- base/src/org/compiere/model/GridTab.java | 5 +---- base/src/org/compiere/model/GridTable.java | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/base/src/org/compiere/model/GridTab.java b/base/src/org/compiere/model/GridTab.java index dae442713f..15aefa0016 100644 --- a/base/src/org/compiere/model/GridTab.java +++ b/base/src/org/compiere/model/GridTab.java @@ -528,10 +528,7 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable if (where.length() > 0) where.append(" AND "); where.append("Created >= "); - if (DB.isDerby()) - where.append("dateadd(dd,-").append(m_vo.onlyCurrentDays).append(",getdate())"); - else - where.append("SysDate-").append(m_vo.onlyCurrentDays); + where.append("SysDate-").append(m_vo.onlyCurrentDays); } // Detail Query if (isDetail()) diff --git a/base/src/org/compiere/model/GridTable.java b/base/src/org/compiere/model/GridTable.java index 7d508cb8a1..52eb2509d7 100644 --- a/base/src/org/compiere/model/GridTable.java +++ b/base/src/org/compiere/model/GridTable.java @@ -280,10 +280,7 @@ public class GridTable extends AbstractTableModel where.append(" AND "); // Show only unprocessed or the one updated within x days where.append("(Processed='N' OR Updated>"); - if (DB.isDerby()) - where.append("dateadd(dd,-1,getdate())"); - else - where.append("SysDate-1"); + where.append("SysDate-1"); where.append(")"); }