IDEMPIERE-3364:Sequence Check don't respect inactive record of ad_table

This commit is contained in:
hieplq 2017-05-18 18:17:05 +07:00
parent 9c170f8b71
commit 07b1f8ddc0
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ public class SequenceCheck extends SvrProcess
// Sync Table Name case // Sync Table Name case
sql = "UPDATE AD_Sequence s " sql = "UPDATE AD_Sequence s "
+ "SET Name = (SELECT TableName FROM AD_Table t " + "SET Name = (SELECT TableName FROM AD_Table t "
+ "WHERE t.IsView='N' AND UPPER(s.Name)=UPPER(t.TableName)) " + "WHERE t.IsView='N' AND t.IsActive='Y' AND UPPER(s.Name)=UPPER(t.TableName)) "
+ "WHERE s.IsTableID='Y'" + "WHERE s.IsTableID='Y'"
+ " AND EXISTS (SELECT * FROM AD_Table t " + " AND EXISTS (SELECT * FROM AD_Table t "
+ "WHERE t.IsActive='Y' AND t.IsView='N'" + "WHERE t.IsActive='Y' AND t.IsView='N'"