enumNullTestSpelling
enum NullTestSpelling
Public API: explicitly declared with
@visibility public.How a NULL test is written: IS [NOT] NULL, or the nonstandard ISNULL and NOTNULL.
Both spellings request the same test; the grammar keeps different token sequences. Source: https://www.postgresql.org/docs/17/functions-comparison.html.
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT 1 NOTNULL');
$query->field(0)->expression->spelling // => \SqlSemantics\Platform\PostgreSql\Statement\Expression\Predicate\NullTestSpelling::PostfixCases§
case KeywordsIS NULL or IS NOT NULL.
case PostfixISNULL or NOTNULL.
Test cases 2§
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 1
Relations§
Constant reads 5
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Expression\PredicateRule packages/sql-semantics-postgres/src/Lowering/Expression/PredicateRule.php:74
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Expression\PredicateRule packages/sql-semantics-postgres/src/Lowering/Expression/PredicateRule.php:75
- class-const SqlSemantics\Platform\PostgreSql\Statement\Expression\Predicate\NullTest::__construct() packages/sql-semantics-postgres/src/Statement/Expression/Predicate/NullTest.php:42
- class-const SqlSemantics\Platform\PostgreSql\Statement\Expression\Predicate\NullTest::render() packages/sql-semantics-postgres/src/Statement/Expression/Predicate/NullTest.php:64
- class-const SqlSemantics\Platform\PostgreSql\Statement\Expression\Predicate\NullTest::render() packages/sql-semantics-postgres/src/Statement/Expression/Predicate/NullTest.php:65