mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Updated for older api on QQueryFilter (noarg constructor)
This commit is contained in:
@ -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();
|
||||||
|
Reference in New Issue
Block a user