FR [ 1829798 ] Easy generation of migration scripts

https://sourceforge.net/tracker2/index.php?func=detail&aid=1829798&group_id=176962&atid=879335
Add exception for DELETE FROM SomeTable WHERE AD_Table_ID=? AND Record_ID=?
This commit is contained in:
Carlos Ruiz 2009-02-06 23:11:56 +00:00
parent 5b3796b98e
commit 59c0d0231a
1 changed files with 3 additions and 0 deletions

View File

@ -494,6 +494,9 @@ public abstract class Convert
// don't log update to statistic process
if (uppStmt.startsWith("UPDATE AD_PROCESS SET STATISTIC_"))
return true;
// 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;
for (int i = 0; i < exceptionTables.length; i++) {
if (uppStmt.startsWith("INSERT INTO " + exceptionTables[i] + " "))
return true;