IDEMPIERE-1300 Don't log trl related statements

This commit is contained in:
Carlos Ruiz 2013-08-25 14:36:43 -05:00
parent e6337d1837
commit 93972b9c6e
1 changed files with 5 additions and 0 deletions

View File

@ -543,6 +543,11 @@ public abstract class Convert
// Don't log DELETE FROM Some_Table WHERE AD_Table_ID=? AND Record_ID=?
if (uppStmt.startsWith("DELETE FROM ") && uppStmt.endsWith(" WHERE AD_TABLE_ID=? AND RECORD_ID=?"))
return true;
// Don't log trl related statements - those will be created/maintained using synchronize terminology
if (uppStmt.matches("UPDATE .*_TRL SET .*"))
return true;
if (uppStmt.matches("INSERT INTO .*_TRL .*"))
return true;
for (int i = 0; i < dontLogTables.length; i++) {
if (uppStmt.startsWith("INSERT INTO " + dontLogTables[i] + " "))
return true;