Updated for older api on QQueryFilter (noarg constructor)

This commit is contained in:
2022-12-15 16:18:14 -06:00
parent 0e68bf1e72
commit a6656af040

View File

@ -209,7 +209,7 @@ public class RDBMSDeleteActionTest extends RDBMSActionTest
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
// try to delete the records without a foreign key that'll block them // // try to delete the records without a foreign key that'll block them //
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
deleteInput.setQueryFilter(new QQueryFilter(new QFilterCriteria("id", QCriteriaOperator.IN, List.of(2, 4, 5)))); deleteInput.setQueryFilter(new QQueryFilter().withCriteria(new QFilterCriteria("id", QCriteriaOperator.IN, List.of(2, 4, 5))));
QueryManager.setCollectStatistics(true); QueryManager.setCollectStatistics(true);
QueryManager.resetStatistics(); QueryManager.resetStatistics();
@ -255,7 +255,7 @@ public class RDBMSDeleteActionTest extends RDBMSActionTest
////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// try to delete all of the child records - 2 should fail, because they are referenced by parent_table.child_id // // try to delete all of the child records - 2 should fail, because they are referenced by parent_table.child_id //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
deleteInput.setQueryFilter(new QQueryFilter(new QFilterCriteria("id", QCriteriaOperator.IN, List.of(1, 2, 3, 4, 5)))); deleteInput.setQueryFilter(new QQueryFilter().withCriteria(new QFilterCriteria("id", QCriteriaOperator.IN, List.of(1, 2, 3, 4, 5))));
QueryManager.setCollectStatistics(true); QueryManager.setCollectStatistics(true);
QueryManager.resetStatistics(); QueryManager.resetStatistics();