final class ResultSlots
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.

Derives the output columns of set operations and VALUES statements from the columns they combine.

Rule: MYSQL-RESULT-SLOTS-001. A set operation is named by the columns of its first operand. The type of a column is the aggregation of the types at its position over the operands or rows (MYSQL-TYPE-AGGREGATION, the rule of the expression family). A UNION column can be NULL when it can in either operand, an INTERSECT column only when it can in both, an EXCEPT column when it can in the left operand. A VALUES column is named column_N, counting from zero, and can be NULL when one of its values can. Operands or rows of different lengths are reported, and a column one of them lacks is invalid; while the first operand has columns that are not known the output is open. Source: https://dev.mysql.com/doc/refman/8.4/en/union.html ("Result Set Column Names and Data Types"), https://dev.mysql.com/doc/refman/8.4/en/values.html. Status: Implemented.

Methods§

public function nullability(
    SetOperator $operator,
    Nullability $left,
    Nullability $right,
): Nullability

Test cases 3§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 3

Relations§

Instantiated in 2
Method calls 2