enumTruth
enum Truth: string
Public API: explicitly declared with
@visibility public.The truth values a truth test compares with: TRUE, FALSE and UNKNOWN.
UNKNOWN is the truth value of NULL. Each case holds the keyword. Source: https://dev.mysql.com/doc/refman/8.4/en/comparison-operators.html#operator_is.
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT a FROM t WHERE a IS NOT UNKNOWN');
$query->statement->where->truth // => \SqlSemantics\Platform\MySql\Statement\Expression\Truth::UnknownCases§
case True = 'TRUE'case False = 'FALSE'case Unknown = 'UNKNOWN'Test cases 9§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 8
ConditionRuleTest::testUnitLowersNotAndTheTruthTestscallsPrecedenceTest::testAbsorbsTellsWhetherAFollowingOperatorBindsIntoTheRightEdgecallsNullTestTest::testATruthTestOperandIsRejectedcallsArithmeticTest::testARightOperandStartingWithALeadingIntervalIsRejectedcallsQuantifiedComparisonTest::testATruthTestOperandIsRejectedcallsTruthTestTest::testATruthTestOperandIsRejectedcallsTruthTestTest::testDeriveScalarIsNeverNullcallsTruthTestTest::testRenderWritesTheNegatedTestcalls
Relations§
Constant reads 3
- class-const SqlSemantics\Platform\MySql\Lowering\Expression\ConditionRule packages/sql-semantics-mysql/src/Lowering/Expression/ConditionRule.php:52
- class-const SqlSemantics\Platform\MySql\Lowering\Expression\ConditionRule packages/sql-semantics-mysql/src/Lowering/Expression/ConditionRule.php:53
- class-const SqlSemantics\Platform\MySql\Lowering\Expression\ConditionRule packages/sql-semantics-mysql/src/Lowering/Expression/ConditionRule.php:54