N°5791 - Obsolescence condition containing IN makes object creation fail

This commit is contained in:
Eric Espie
2025-01-07 11:29:33 +01:00
parent 6948c594c2
commit 346a8eadec
2 changed files with 16 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ class ExpressionEvaluateTest extends ItopDataTestCase
{
$aExpressions = array(
// Test case to isolate for troubleshooting purposes
array('1+1', 2),
array("'a' IN ('a', 'b')", true),
);
}
else
@@ -141,6 +141,9 @@ class ExpressionEvaluateTest extends ItopDataTestCase
array('"2020-06-12 17:35:13" < "2020-06-12"', 0),
array('"2020-06-12 00:00:00" = "2020-06-12"', 0),
// IN operator
array("'a' IN ('a', 'b')", true),
// Logical operators
array('0 AND 0', 0),
array('1 AND 0', 0),