Solve problem reported with BUG ID 1643796 - Different null management between oracle and postgres
This commit is contained in:
parent
05d35c1e0c
commit
ba0c31c259
|
@ -108,7 +108,7 @@ public class ImportAccount extends SvrProcess
|
|||
+ " CreatedBy = COALESCE (CreatedBy, 0),"
|
||||
+ " Updated = COALESCE (Updated, SysDate),"
|
||||
+ " UpdatedBy = COALESCE (UpdatedBy, 0),"
|
||||
+ " I_ErrorMsg = NULL,"
|
||||
+ " I_ErrorMsg = ' ',"
|
||||
+ " I_IsImported = 'N' "
|
||||
+ "WHERE I_IsImported<>'Y' OR I_IsImported IS NULL");
|
||||
no = DB.executeUpdate(sql.toString(), get_TrxName());
|
||||
|
|
|
@ -103,7 +103,7 @@ public class ImportBankStatement extends SvrProcess
|
|||
+ " CreatedBy = COALESCE (CreatedBy, 0),"
|
||||
+ " Updated = COALESCE (Updated, SysDate),"
|
||||
+ " UpdatedBy = COALESCE (UpdatedBy, 0),"
|
||||
+ " I_ErrorMsg = NULL,"
|
||||
+ " I_ErrorMsg = ' ',"
|
||||
+ " I_IsImported = 'N' "
|
||||
+ "WHERE I_IsImported<>'Y' OR I_IsImported IS NULL OR AD_Client_ID IS NULL OR AD_Org_ID IS NULL OR AD_Client_ID=0 OR AD_Org_ID=0");
|
||||
no = DB.executeUpdate(sql.toString(), get_TrxName());
|
||||
|
|
|
@ -117,7 +117,7 @@ public class ImportConversionRate extends SvrProcess
|
|||
+ " CreatedBy = COALESCE (CreatedBy, 0),"
|
||||
+ " Updated = COALESCE (Updated, SysDate),"
|
||||
+ " UpdatedBy = ").append(getAD_User_ID()).append(","
|
||||
+ " I_ErrorMsg = NULL,"
|
||||
+ " I_ErrorMsg = ' ',"
|
||||
+ " Processed = 'N',"
|
||||
+ " I_IsImported = 'N' "
|
||||
+ "WHERE I_IsImported<>'Y' OR I_IsImported IS NULL");
|
||||
|
|
|
@ -108,7 +108,7 @@ public class ImportGLJournal extends SvrProcess
|
|||
+ " CreatedBy = COALESCE (CreatedBy, 0),"
|
||||
+ " Updated = COALESCE (Updated, SysDate),"
|
||||
+ " UpdatedBy = COALESCE (UpdatedBy, 0),"
|
||||
+ " I_ErrorMsg = NULL,"
|
||||
+ " I_ErrorMsg = ' ',"
|
||||
+ " I_IsImported = 'N' "
|
||||
+ "WHERE I_IsImported<>'Y' OR I_IsImported IS NULL");
|
||||
no = DB.executeUpdate(sql.toString(), get_TrxName());
|
||||
|
|
|
@ -87,7 +87,7 @@ public class ImportInOutConfirm extends SvrProcess
|
|||
+ " CreatedBy = COALESCE (CreatedBy, 0),"
|
||||
+ " Updated = COALESCE (Updated, SysDate),"
|
||||
+ " UpdatedBy = COALESCE (UpdatedBy, 0),"
|
||||
+ " I_ErrorMsg = NULL,"
|
||||
+ " I_ErrorMsg = ' ',"
|
||||
+ " I_IsImported = 'N' "
|
||||
+ "WHERE I_IsImported<>'Y' OR I_IsImported IS NULL");
|
||||
no = DB.executeUpdate(sql.toString(), get_TrxName());
|
||||
|
|
|
@ -103,7 +103,7 @@ public class ImportInventory extends SvrProcess
|
|||
+ " CreatedBy = COALESCE (CreatedBy, 0),"
|
||||
+ " Updated = COALESCE (Updated, SysDate),"
|
||||
+ " UpdatedBy = COALESCE (UpdatedBy, 0),"
|
||||
+ " I_ErrorMsg = NULL,"
|
||||
+ " I_ErrorMsg = ' ',"
|
||||
+ " M_Warehouse_ID = NULL," // reset
|
||||
+ " I_IsImported = 'N' "
|
||||
+ "WHERE I_IsImported<>'Y' OR I_IsImported IS NULL");
|
||||
|
|
|
@ -99,7 +99,7 @@ public class ImportInvoice extends SvrProcess
|
|||
+ " CreatedBy = COALESCE (CreatedBy, 0),"
|
||||
+ " Updated = COALESCE (Updated, SysDate),"
|
||||
+ " UpdatedBy = COALESCE (UpdatedBy, 0),"
|
||||
+ " I_ErrorMsg = NULL,"
|
||||
+ " I_ErrorMsg = ' ',"
|
||||
+ " I_IsImported = 'N' "
|
||||
+ "WHERE I_IsImported<>'Y' OR I_IsImported IS NULL");
|
||||
no = DB.executeUpdate(sql.toString(), get_TrxName());
|
||||
|
|
|
@ -99,7 +99,7 @@ public class ImportOrder extends SvrProcess
|
|||
+ " CreatedBy = COALESCE (CreatedBy, 0),"
|
||||
+ " Updated = COALESCE (Updated, SysDate),"
|
||||
+ " UpdatedBy = COALESCE (UpdatedBy, 0),"
|
||||
+ " I_ErrorMsg = NULL,"
|
||||
+ " I_ErrorMsg = ' ',"
|
||||
+ " I_IsImported = 'N' "
|
||||
+ "WHERE I_IsImported<>'Y' OR I_IsImported IS NULL");
|
||||
no = DB.executeUpdate(sql.toString(), get_TrxName());
|
||||
|
|
|
@ -103,7 +103,7 @@ public class ImportPayment extends SvrProcess
|
|||
+ " CreatedBy = COALESCE (CreatedBy, 0),"
|
||||
+ " Updated = COALESCE (Updated, SysDate),"
|
||||
+ " UpdatedBy = COALESCE (UpdatedBy, 0),"
|
||||
+ " I_ErrorMsg = NULL,"
|
||||
+ " I_ErrorMsg = ' ',"
|
||||
+ " I_IsImported = 'N' "
|
||||
+ "WHERE I_IsImported<>'Y' OR I_IsImported IS NULL OR AD_Client_ID IS NULL OR AD_Org_ID IS NULL OR AD_Client_ID=0 OR AD_Org_ID=0");
|
||||
no = DB.executeUpdate(sql.toString(), get_TrxName());
|
||||
|
|
|
@ -97,7 +97,7 @@ public class ImportProduct extends SvrProcess
|
|||
+ " Updated = COALESCE (Updated, SysDate),"
|
||||
+ " UpdatedBy = COALESCE (UpdatedBy, 0),"
|
||||
+ " ProductType = COALESCE (ProductType, 'I'),"
|
||||
+ " I_ErrorMsg = NULL,"
|
||||
+ " I_ErrorMsg = ' ',"
|
||||
+ " I_IsImported = 'N' "
|
||||
+ "WHERE I_IsImported<>'Y' OR I_IsImported IS NULL");
|
||||
no = DB.executeUpdate(sql.toString(), get_TrxName());
|
||||
|
|
|
@ -97,7 +97,7 @@ public class ImportReportLine extends SvrProcess
|
|||
+ " CreatedBy = COALESCE (CreatedBy, 0),"
|
||||
+ " Updated = COALESCE (Updated, SysDate),"
|
||||
+ " UpdatedBy = COALESCE (UpdatedBy, 0),"
|
||||
+ " I_ErrorMsg = NULL,"
|
||||
+ " I_ErrorMsg = ' ',"
|
||||
+ " I_IsImported = 'N' "
|
||||
+ "WHERE I_IsImported<>'Y' OR I_IsImported IS NULL");
|
||||
no = DB.executeUpdate(sql.toString(), get_TrxName());
|
||||
|
|
Loading…
Reference in New Issue