enumGroupingModifier
enum GroupingModifier
Public API: explicitly declared with
@visibility public.The super-aggregate modifier of a GROUP BY clause.
WITH ROLLUP follows the grouping list; WITH CUBE is accepted by the 5.x grammars only (the server rejects it as not supported); ROLLUP (...) and CUBE (...) enclose the grouping list (MySQL 8.3 and later grammars). Source: https://dev.mysql.com/doc/refman/8.4/en/group-by-modifiers.html.
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT a FROM t GROUP BY a WITH ROLLUP');
$query->statement->groupBy->modifier // => \SqlSemantics\Platform\MySql\Statement\Query\Clause\GroupingModifier::WithRollupCases§
case WithRollupcase WithCubecase Rollupcase CubeTest 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 8
- class-const SqlSemantics\Platform\MySql\Lowering\Query\Shared\ClauseRule packages/sql-semantics-mysql/src/Lowering/Query/Shared/ClauseRule.php:73
- class-const SqlSemantics\Platform\MySql\Lowering\Query\Shared\ClauseRule packages/sql-semantics-mysql/src/Lowering/Query/Shared/ClauseRule.php:73
- class-const SqlSemantics\Platform\MySql\Lowering\Query\Shared\ClauseRule::grouping() packages/sql-semantics-mysql/src/Lowering/Query/Shared/ClauseRule.php:113
- class-const SqlSemantics\Platform\MySql\Lowering\Query\Shared\ClauseRule::grouping() packages/sql-semantics-mysql/src/Lowering/Query/Shared/ClauseRule.php:114
- class-const SqlSemantics\Platform\MySql\Statement\Query\Clause\Grouping::render() packages/sql-semantics-mysql/src/Statement/Query/Clause/Grouping.php:52
- class-const SqlSemantics\Platform\MySql\Statement\Query\Clause\Grouping::render() packages/sql-semantics-mysql/src/Statement/Query/Clause/Grouping.php:52
- class-const SqlSemantics\Platform\MySql\Statement\Query\Clause\Grouping::render() packages/sql-semantics-mysql/src/Statement/Query/Clause/Grouping.php:53
- class-const SqlSemantics\Platform\MySql\Statement\Query\Clause\Grouping::render() packages/sql-semantics-mysql/src/Statement/Query/Clause/Grouping.php:59