classSelect
final class Select
implements Statement, Query, Selection
uses Snapshot
@visibility public.One query block: SELECT with its modifiers, select list, FROM clause, filters, grouping, windows, ordering, limit, INTO and locking clauses.
It is the query specification of every grammar generation. The ORDER BY, LIMIT, INTO and locking clauses written after a single query block belong to it, as the server attaches them; written after a set operation or a parenthesized query they belong to a query expression or a query statement instead. An ORDER BY or GROUP BY item that is an unsigned integer is a select list position (MYSQL-ORDINAL-001) and must be given as one. An INTO clause after the query clauses needs one of them, because otherwise it is written as the INTO after the select list. A block of a 5.6 subquery may write its ORDER BY and LIMIT after its locking clauses, or a LIMIT after its own LIMIT that replaces it (LateOrdering).
Rule: MYSQL-SELECT-001. The facts are derived by MYSQL-SELECT-FACTS-001. Source: https://dev.mysql.com/doc/refman/8.4/en/select.html, https://dev.mysql.com/doc/refman/5.7/en/select.html. Status: Implemented.
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT a, b FROM t WHERE a > 1 GROUP BY a, b HAVING a > 2 ORDER BY a LIMIT 3');
[count($query->statement->items), $query->statement->where !== null, $query->statement->having !== null, count($query->statement->orderBy)] // => [2, true, true, 1]$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT a FROM t');
$query->field('a')->type instanceof \SqlSemantics\Platform\MySql\Model\Statement\Type\Dependent // => truenew \SqlSemantics\Platform\MySql\Statement\Query\Select([], [new \SqlSemantics\Platform\MySql\Statement\Query\SelectExpression(new \SqlSemantics\Platform\MySql\Statement\Literal\NumberLiteral('1')), new \SqlSemantics\Platform\MySql\Statement\Query\Star()]) // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\InvalidConstructionProperties§
public list<SelectOption> $optionspublic non-empty-list<SelectExpression|Star|TableWildcard> $itemspublic list<WindowDefinition> $windowspublic list<OrderItem> $orderBypublic list<LockingClause> $lockingpublic Relation|null $from = nullpublic Scalar|null $where = nullpublic Grouping|null $groupBy = nullpublic Scalar|null $having = nullpublic Scalar|null $qualify = nullpublic Limit|null $limit = nullpublic ProcedureAnalyse|null $procedure = nullpublic IntoDestination|null $into = nullpublic IntoPosition|null $intoPosition = nullpublic LateOrdering|null $late = nullMethods§
public function __construct(
list<SelectOption> $options,
list<Node> $items,
public Relation|null $from = null,
public Scalar|null $where = null,
public Grouping|null $groupBy = null,
public Scalar|null $having = null,
list<WindowDefinition> $windows = [],
public Scalar|null $qualify = null,
list<OrderItem> $orderBy = [],
public Limit|null $limit = null,
public ProcedureAnalyse|null $procedure = null,
list<LockingClause> $locking = [],
public IntoDestination|null $into = null,
public IntoPosition|null $intoPosition = null,
public LateOrdering|null $late = null,
)Parameters
$options | list<SelectOption> | The modifiers in written order |
$items | list<Node> | The select list of expressions and qualified stars; at least one item, an unqualified star only first |
$from | Relation|null | The FROM clause |
$where | Scalar|null | The row predicate |
$groupBy | Grouping|null | The GROUP BY clause |
$having | Scalar|null | The group predicate |
$windows | list<WindowDefinition> | The named windows |
$qualify | Scalar|null | The window predicate of QUALIFY |
$orderBy | list<OrderItem> | The ORDER BY items |
$limit | Limit|null | The LIMIT clause |
$procedure | ProcedureAnalyse|null | The PROCEDURE ANALYSE clause of the 5.x grammars |
$locking | list<LockingClause> | The locking clauses |
$into | IntoDestination|null | The INTO destination |
$intoPosition | IntoPosition|null | Where INTO is written; given exactly when there is a destination |
$late | LateOrdering|null | The ORDER BY and LIMIT a 5.6 subquery writes after the locking clauses or the LIMIT of the block |
Calls 12
- static-call Check::listOf() line 122
- class-const SelectOption::class() line 122
- class-const Node::class() line 124
- static-call Check::input() line 125
- class-const WindowDefinition::class() line 129
- class-const OrderItem::class() line 130
- class-const LockingClause::class() line 131
- method-call SortScopes::check() line 132
- new SortScopes line 132
- class-const IntoPosition::AfterQuery() line 134
- method-call Select::clauses() line 134
- class-const IntoPosition::AfterLocking() line 135
public function clauses(): boolTells whether a clause after the select list and before INTO is written.
Returns
boolpublic function trailed(): boolTells whether a clause written after the selection proper is present: ORDER BY, LIMIT, PROCEDURE, a trailing INTO or a locking clause.
Returns
boolCalled from 2
- method-call SqlSemantics\Platform\MySql\Statement\Query\Set\LeadingUnion::__construct() packages/sql-semantics-mysql/src/Statement/Query/Set/LeadingUnion.php:60
- method-call SqlSemantics\Platform\MySql\Statement\Query\Set\OrderedSetOperation::__construct() packages/sql-semantics-mysql/src/Statement/Query/Set/OrderedSetOperation.php:82
Calls 1
- class-const IntoPosition::AfterItems() line 156
public function deriveStatement(Derivation $derivation): voidDerives the selection as a statement root and records its rows as the output.
Parameters
$derivation | Derivation |
Calls 4
- static-call Check::input() line 172
- method-call Derivation::output() line 173
- method-call Derivation::query() line 173
- method-call Derivation::environment() line 173
public function deriveQuery(Derivation $derivation, Environment $outer): QueryFactDerives the input, every clause and the output fields.
Parameters
$derivation | Derivation | |
$outer | Environment |
Returns
Calls 4
- static-call Check::input() line 181
- class-const GrammarRelease::MySql5651() line 181
- method-call SelectFacts::derive() line 183
- new SelectFacts line 183
public function render(Output $out): voidWrites the clauses in grammar order.
Parameters
$out | Output |
Calls 7
- method-call Output::keyword() line 191
- method-call Output::list() line 195
- method-call Select::renderInto() line 196
- class-const IntoPosition::AfterItems() line 196
- method-call Output::node() line 203
- class-const IntoPosition::AfterQuery() line 217
- class-const IntoPosition::AfterLocking() line 221
public function renderInto(Output $out, IntoPosition $position): voidWrites the INTO clause when it is written at the given position.
Parameters
$out | Output | |
$position | IntoPosition |
Called from 3
- method-call SqlSemantics\Platform\MySql\Statement\Query\Select::render() packages/sql-semantics-mysql/src/Statement/Query/Select.php:196
- method-call SqlSemantics\Platform\MySql\Statement\Query\Select::render() packages/sql-semantics-mysql/src/Statement/Query/Select.php:217
- method-call SqlSemantics\Platform\MySql\Statement\Query\Select::render() packages/sql-semantics-mysql/src/Statement/Query/Select.php:221
Calls 1
- method-call Output::keyword() line 231
Test cases 198§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 16
SelectTest::testAnEmptySelectListIsRejectedcallsSelectTest::testAnIntegerOrderingItemIsRejectedcallsSelectTest::testAnIntoAfterTheClausesWithoutClausesIsRejectedcallsSelectTest::testANodeUsedAtTwoPositionsIsRejectedcallsSelectTest::testAStringLiteralUnderAnotherEscapeRuleIsRejectedcallsSelectTest::testClausesTellsWhetherAClauseFollowsTheSelectListcallsSelectTest::testDeriveQueryDerivesThePredicateInTheScopeOfTheTablecallsSelectTest::testDeriveQueryRefusesALateOrderingBefore56callsSelectTest::testDeriveStatementRecordsTheRowsAsTheOutputcallsSelectTest::testDeriveStatementRefusesALateOrderingAtTheTopcallsSelectTest::testInputAnswersNullWithoutAFromClausecallsSelectTest::testInputAnswersTheTableReferencecallsSelectTest::testRejectsALateOrderingAfterABlockThatOrdersItsRowscallsSelectTest::testRejectsALateOrderingThatIsWrittenInPlacecallsSelectTest::testRenderBuildsSqlFromAnExplicitStructurecallsSelectTest::testTrailedTellsWhetherAClauseFollowsTheBlockPropercalls
Other tests reaching this symbol 182
LiteralRuleTest::testConstantLowersIntroducedRadixLiteralsAndSignedNumberscallsLiteralRuleTest::testLiteralLowersEveryLiteralFormcallsLiteralRuleTest::testStringLowersAdjacentSegmentsIntroducersAndTheNationalPrefixcallsNameRuleTest::testColumnLowersEveryQualificationcallsNameRuleTest::testDottedTellsATableNameWrittenAfterALeadingDotcallsNameRuleTest::testIdentifierDecodesEverySpellingOfANamecallsNameRuleTest::testIdentifierReadsAStringAtANamePositioncallsNameRuleTest::testOptionalLowersTheComponentOfALegacySystemVariablecallsNameRuleTest::testQualifiedLowersATableNameWithItsDatabasecallsVariableRuleTest::testAssignmentLowersAnAssignmentInsideAnExpressioncallsVariableRuleTest::testLegacySystemLowersTheScopeAndComponentOfMySql5callsVariableRuleTest::testUserLowersEverySpellingOfAUserVariableNamecallsVariableRuleTest::testVariableLowersUserAndSystemVariablesOfEveryGenerationcallsLoweringTest::testStatementsAnswerTheOneStatementOfALegacyInputcallsLoweringTest::testStatementsAnswerTheOneStatementOfAnInputcallsChainTest::testEarlierKeepsALimitBeforeTheLastOperandIn56callsChainTest::testEnclosedKeepsTheClausesAfterTheFirstParenthesizedOperandcallsChainTest::testEnclosedRejectsAnOrderingAfterAParenthesizedOperandThatLimitsItselfcallsChainTest::testEnclosedRejectsClausesAfterALaterParenthesizedOperandcallsFactorRuleTest::testContentAnswersTheBlockOfADerivedTablecallsJoinRuleTest::testJoinedWalksTheJoinsOnTheLeftcallsExpressionRuleTest::testIntoLowersTheIntoAfterTheQuerycallsExpressionRuleTest::testStatementFoldsTheClausesIntoASingleBlockcallsExpressionRuleTest::testSubqueryRemovesTheParenthesesOfTheSyntaxcallsPrimaryRuleTest::testPrimaryLowersEveryPrimarycallsReferenceRuleTest::testJoinedWalksTheJoinsOnTheLeftcallsQueryRulesTest::testAliasLowersColumnAndTableAliasescallsQueryRulesTest::testLegacyParenthesizedQueryKeepsTheParenthesesAndTheUnioncallsQueryRulesTest::testLegacyQueryLowersCreateSelectWithItsUnioncallsBlockTest::testFinishKeepsALaterOrderingAfterTheLockingClausesAsTheBlocksOwncallsBlockTest::testFinishKeepsASecondLimitAsTheLimitThatReplacesTheFirstcallsBlockTest::testFinishOrdersTheRowsOfABlockThatLimitsItsRowscallsBlockTest::testFinishWritesClausesInPlaceWhenNothingOfTheBlockPrecedesThemcallsClauseRuleTest::testDirectionLowersAscendingAndDescendingcallsClauseRuleTest::testOrderingReadsIntegersAsPositionscallsFromRuleTest::testTablesAnswersOneReferenceOrAListcallsItemRuleTest::testExpressionKeepsTheLayoutOfAnItemNamedAfterItsTextcallsItemRuleTest::testMarkAnswersWhetherAnAliasIsWrittenAfterAscallsTableRuleTest::testMarkAnswersWhatIsWrittenBeforeTheAliascallsTableRuleTest::testPartitionsLowersTheNamescallsTrailerTest::testWrapPutsTheOrderingAndTheLockingAroundAQuerycallsTrailerTest::testWrapRejectsProcedureAnalysecallsDefinitionRuleTest::testRoutineLowersAProcedurecallsEventRuleTest::testAlterLowersTheStructurecallsEventRuleTest::testCreateLowersAnEventOfEveryLayoutcallsBlockRuleTest::providerDeclarationLowersACursorcallsStatementRuleTest::providerEventLowersTheStatementOfAnEventcallsStatementRuleTest::testStatementsLowersTheListInOrdercallsPlatformTest::testLowerAnswersTheStatementsOfATreecallsPlatformTest::testStatementNamespaceNamesTheMySqlStatementValuescallsColumnResolverTest::testFindFallsBackToTheAliasOfASelectListItemcallsColumnResolverTest::testFindIsConditionalWhileAnItemWithoutADecidedNameCouldHaveTheNamecallsColumnResolverTest::testFindIsConditionalWhileAnUndeclaredRelationCouldOwnTheNamecallsColumnResolverTest::testFindPrefersAColumnOfTheFromClauseToAnAliascallsColumnResolverTest::testUnlistedAnswersTheOccurrencesThatMayGiveAHavingPositionTheNamecallsAggregationTest::testAggregatesFindsASetFunctionOutsideNestedQueriescallsCommonTablesTest::testPendingFindsTheRecursiveTableARightOperandRefersTocallsCommonTablesTest::testRefersFindsAnUnqualifiedReferencecallsCommonTablesTest::testShapeRenamesTheColumnsByTheColumnListcallsFromScopeTest::testEnterDerivesTheConditionWithTheOperandsBeforeExtensioncallsHavingScopeTest::testGroupingAnswersTheColumnsAsTheHavingPositionSeesThemcallsHavingScopeTest::testLeaveLetsTheArgumentsOfASetFunctionSeeTheColumnscallsHavingScopeTest::testUndecidedAnswersTheColumnsOfIncompletelyKnownOccurrencescallsResultReferencesTest::testFindPrefersAGroupByColumnToASelectListItemcallsResultReferencesTest::testGroupingSkipsAColumnOfAnotherOccurrenceAndReportsTwoDifferentColumnscallsResultReferencesTest::testSelectedIsConditionalWhileAnItemWithoutADecidedNameCouldHaveTheNamecallsResultReferencesTest::testSelectedResolvesAColumnItemToItsColumnAndAnotherItemToTheItemcallsQueryTailsTest::testExpressionWritesTheOrderingAndTheLimitOnlycallsQueryTailsTest::testLeadingWritesUnionTheQuantifierAndTheLastOperandcallsQueryTailsTest::testOperationWritesTheOperatorTheQuantifierAndTheRightOperandcallsSelectFactsTest::testAliasesAnswersTheFieldsNamedByAnAliasOrAfterTheirTextcallsSelectFactsTest::testDeriveResolvesAnOrderingByTheTextAnItemIsNamedAftercallsSelectFactsTest::testDeriveScopesEveryClausecallsSetFactsTest::testLeadingRefusesAnOwnLimitOnMySql57callsSortScopesTest::testDeriveResolvesOrdinalsAliasesAndColumnscallsTableShapesTest::testImplicitFindsInvisibleColumnsByNameOnlycallsTailFactsTest::testLimitDerivesTheOperandscallsWindowReferencesTest::testNamesAnswersTheWindowNamesInWrittenOrdercallsBlockFactsTest::testDeriveDerivesTheCursorQueryInTheScopeOfTheBlockcallsBlockFactsTest::testDeriveResolvesTheVariableOfTheInnermostBlockcallsBlockFactsTest::testVariablesHidesAParameterOfTheSameNamecallsBlockFactsTest::testVariablesReportsADuplicateNameAndKeepsTheFirstMeaningcallsBodyFactsTest::testStatementResolvesAVariableInANestedQuerycallsViewColumnsTest::testGeneratedTellsTheFieldsWithoutAliasThatAreNoColumnscallsComparisonTest::testDeriveScalarDependsOnTheOperandsOfAnUndeclaredTablecallsComparisonTest::testDeriveScalarNeverYieldsNullForTheNullSafeEqualitycallsComparisonTest::testDeriveScalarNeverYieldsNullWhenBothOperandsCannotcallsComparisonTest::testDeriveScalarYieldsAnIntegerThatCanBeNullWhenAnOperandCancallsComparisonTest::testRenderKeepsTheLeftAssociationOfAChaincallsComparisonTest::testRenderSpellsTheNotEqualOperatorInItsStandardFormcallsComparisonTest::testRenderWritesTheOperandsAroundTheOperatorInTheOrderWrittencallsBooleanLiteralTest::testDeriveScalarAnswersBigIntThatIsNeverNullcallsBooleanLiteralTest::testDeriveScalarTypesFalseLikeTruecallsEscapeRuleTest::testUnderFollowsTheProfileOfAnAnalysiscallsNullLiteralTest::testDeriveScalarAnswersTheNullOnlyTypeThatIsNullablecallsNullLiteralTest::testRenderWritesTheKeywordInUpperCasecallsNumberLiteralTest::testDeriveScalarAnswersDecimalForAnExactNumberWithAPointcallsNumberLiteralTest::testDeriveScalarAnswersTheTypeOfTheTextThatIsNeverNullcallsParameterTest::testDeriveScalarDependsOnTheBoundValuecallsParameterTest::testDeriveScalarNamesANamedMarkercallsRadixLiteralTest::testDeriveScalarAnswersVarBinaryWithoutAnIntroducercallsRadixLiteralTest::testDeriveScalarAnswersVarCharOfTheIntroducedCharacterSetcallsRadixLiteralTest::testRenderPrefixesAnOddCountOfHexadecimalDigitscallsRadixLiteralTest::testRenderQuotesBitDigitsOfEitherSpellingcallsStringLiteralTest::testDeriveScalarAnswersTheIntroducedCharacterSetcallsStringLiteralTest::testDeriveScalarAnswersTheNationalCharacterSetcallsStringLiteralTest::testDeriveScalarAnswersVarCharOfNoCharacterSetThatIsNeverNullcallsStringLiteralTest::testDeriveScalarRejectsALiteralSpelledUnderTheOtherEscapeRulecallsStringLiteralTest::testRenderDecodesAndSpellsEscapesUnderTheBackslashRulecallsStringLiteralTest::testRenderKeepsBackslashesUnderTheVerbatimRulecallsStringLiteralTest::testValueConcatenatesTheAdjacentSegmentscallsTemporalLiteralTest::testDeriveScalarAnswersDateForADateLiteralcallsTemporalLiteralTest::testDeriveScalarAnswersTheTemporalTypeThatIsNeverNullcallsTemporalLiteralTest::testDeriveScalarRejectsALiteralSpelledUnderTheOtherEscapeRulecallsColumnUseTest::testDeriveScalarAnswersTheFactsOfTheItemAnAliasNamescallsColumnUseTest::testDeriveScalarAnswersTheTypeAndNullFactOfTheResolvedSlotcallsColumnUseTest::testDeriveScalarDependsOnTheDeclarationOfAnUndeclaredRelationcallsColumnUseTest::testDeriveScalarReportsAMissingColumncallsColumnUseTest::testDeriveScalarReportsAnAmbiguousColumncallsColumnUseTest::testDeriveScalarReportsAQualifierThatNamesNoRelationEvenInAnOpenContextcallsColumnUseTest::testDeriveScalarResolvesWithoutRegardToLetterCasecallsColumnUseTest::testRenderWritesTheQualifiersAndTheNameAsWrittencallsGroupingTest::testItemsKeepTheirWrittenOrderAndDirectioncallsLateOrderingTest::testRenderWritesTheOrderingAfterTheLockingClausesOfTheBlockcallsOutputOrdinalTest::testDeriveScalarDependsOnAnOpenStarcallsOutputOrdinalTest::testDeriveScalarTakesTheFactsOfTheFieldcallsProgramVariableTest::testDeriveScalarDependsOnTheStoredProgramcallsRowLimitTest::testOperandsAreTheCountAndTheOffsetcallsWindowDefinitionTest::testRenderWritesTheNameAndTheWindowcallsIntoDumpfileTest::testRenderWritesTheFilecallsIntoVariablesTest::testRenderWritesTheTargetscallsParenthesizedQueryTest::testDeriveStatementRecordsTheRowsOfTheInnerQuerycallsQueryExpressionTest::testAnIntegerOrderingItemIsRejectedcallsQueryExpressionTest::testAnOrderingOverASingleBlockIsRejectedcallsQueryExpressionTest::testAWrapperWithoutClausesIsRejectedcallsQueryStatementTest::testAnIntoAfterTheSelectListIsRejectedcallsQueryStatementTest::testTheClausesOfASingleBlockAreRejectedcallsSelectExpressionTest::testRenderOmitsTheAliasWhenNoneWasWrittencallsSelectExpressionTest::testRenderQuotesAnAliasThatIsAReservedWordcallsSelectExpressionTest::testRenderWritesAnItemBuiltWithoutLayoutCanonicallycallsSelectExpressionTest::testRenderWritesTheExpressionAndTheAliascallsSelectItemTest::testAProjectedExpressionIsASelectItemcallsSelectOptionTest::testModifiersKeepTheirWrittenOrdercallsLeadingUnionTest::testRenderKeepsTheOwnClausesOfAnEarlierSelectcallsLeadingUnionTest::testRenderNeedsALastOperandWithOnlyItsOwnLimitOrLockingcallsLeadingUnionTest::testRenderNeedsMySql5ForTheFormAndMySql56ForAnOwnLimitcallsLeadingUnionTest::testRenderNeedsUnionAfterItcallsOrderedSetOperationTest::testDeriveQueryNeedsMySql56callsOrderedSetOperationTest::testDeriveQueryOrdersTheResultAndKeepsTheClausesOfTheLastSelectcallsOrderedSetOperationTest::testRejectsALastSelectWithoutClausesOfItsOwncallsOrderedSetOperationTest::testRejectsAsAnOperandOfAnotherSetOperationcallsSetOperationTest::testALastOperandWithItsOwnOrderingIsRejectedcallsSetOperationTest::testALooserOperationOnTheLeftOfIntersectIsRejectedcallsSetOperationTest::testANestedOperationOnTheRightIsRejectedcallsSetOperationTest::testAQueryExpressionOnTheRightIsRejectedcallsSetOperationTest::testAQueryStatementAsAnOperandIsRejectedcallsStarTest::testRenderWritesTheStarcallsDualTest::testDeriveRelationAnswersTheEmptyRowcallsEscapedRelationTest::testDeriveRelationDerivesTheEscapedReferencecallsTableSampleTest::testThePercentageIsDerivedWithoutColumnscallsJoinedTableTest::testDeriveRelationNestsLikeTheParseOfTheReleasecallsTableListTest::testDeriveRelationJoinsTheMembersLeftToRightcallsTableReferenceTest::testDeriveRelationDoesNotFindATableOfAnotherDatabasecallsTableReferenceTest::testDeriveRelationExposesOneSlotPerDeclaredColumncallsTableReferenceTest::testDeriveRelationLeavesTheShapeOpenForAnUndeclaredTablecallsTableReferenceTest::testDeriveRelationReportsAMissingTableWithAnEmptyCompleteShapecallsTableReferenceTest::testDeriveRelationReportsConflictingDeclarationscallsBlockTest::testDeriveProgramHidesAParameterWithAVariableOfTheSameNamecallsBlockTest::testDeriveProgramKeepsTheFirstMeaningOfADuplicateVariablecallsCursorDeclarationTest::testRenderWritesTheNameAndTheQuerycallsProgramStatementTest::testDeriveProgramIsNotImplementedByAQueryOfABodycallsSystemVariableTest::testDeriveScalarNamesAnUnscopedVariableWithoutAScopecallsSystemVariableTest::testDeriveScalarNamesTheInstanceOfAStructuredVariablecallsSystemVariableTest::testDeriveScalarNamesTheVariableAsMissingSessionStatecallsSystemVariableTest::testRenderBuildsSqlFromAnExplicitStructurecallsSystemVariableTest::testRenderSpellsLocalAsSessioncallsUserVariableTest::testDeriveScalarKeepsTheNameAsWrittencallsUserVariableTest::testDeriveScalarNamesTheVariableAsMissingSessionStatecallsUserVariableTest::testRenderBuildsSqlFromAnExplicitStructurecallsVariableAssignmentTest::testDeriveScalarHasTheFactsOfTheValuecallsVariableAssignmentTest::testDeriveScalarRecordsTheTargetAsMissingSessionStatecallsVariableAssignmentTest::testDeriveScalarTakesEverythingRightOfTheOperatorAsTheValuecalls
Relations§
Instantiated in 1
Method calls 2
- method-call SqlSemantics\Platform\MySql\Statement\Query\Set\LeadingUnion::__construct() packages/sql-semantics-mysql/src/Statement/Query/Set/LeadingUnion.php:60
- method-call SqlSemantics\Platform\MySql\Statement\Query\Set\OrderedSetOperation::__construct() packages/sql-semantics-mysql/src/Statement/Query/Set/OrderedSetOperation.php:82
Type checks 8
- instanceof SqlSemantics\Platform\MySql\Lowering\Query\Legacy\Chain::query() packages/sql-semantics-mysql/src/Lowering/Query/Legacy/Chain.php:80
- instanceof SqlSemantics\Platform\MySql\Lowering\Query\Legacy\Chain::enclosed() packages/sql-semantics-mysql/src/Lowering/Query/Legacy/Chain.php:140
- instanceof SqlSemantics\Platform\MySql\Rules\Dml\SourceRelations::visible() packages/sql-semantics-mysql/src/Rules/Dml/SourceRelations.php:43
- instanceof SqlSemantics\Platform\MySql\Rules\Routine\ProgramRestrictions::into() packages/sql-semantics-mysql/src/Rules/Routine/ProgramRestrictions.php:150
- instanceof SqlSemantics\Platform\MySql\Rules\TableDefinition\ViewColumns::block() packages/sql-semantics-mysql/src/Rules/TableDefinition/ViewColumns.php:129
- instanceof SqlSemantics\Platform\MySql\Statement\Query\QueryExpression::__construct() packages/sql-semantics-mysql/src/Statement/Query/QueryExpression.php:65
- instanceof SqlSemantics\Platform\MySql\Statement\Query\QueryStatement::__construct() packages/sql-semantics-mysql/src/Statement/Query/QueryStatement.php:63
- instanceof SqlSemantics\Platform\MySql\Statement\Query\Set\SetOperation::__construct() packages/sql-semantics-mysql/src/Statement/Query/Set/SetOperation.php:64
Type declarations 8
- type SqlSemantics\Platform\MySql\Lowering\Query\Shared\Block packages/sql-semantics-mysql/src/Lowering/Query/Shared/Block.php:114
- type SqlSemantics\Platform\MySql\Rules\Query\SelectFacts packages/sql-semantics-mysql/src/Rules/Query/SelectFacts.php:58
- type SqlSemantics\Platform\MySql\Rules\Query\SelectFacts packages/sql-semantics-mysql/src/Rules/Query/SelectFacts.php:99
- type SqlSemantics\Platform\MySql\Rules\Query\SelectFacts packages/sql-semantics-mysql/src/Rules/Query/SelectFacts.php:122
- type SqlSemantics\Platform\MySql\Rules\Query\WindowReferences packages/sql-semantics-mysql/src/Rules/Query/WindowReferences.php:42
- type SqlSemantics\Platform\MySql\Rules\TableDefinition\ViewColumns packages/sql-semantics-mysql/src/Rules/TableDefinition/ViewColumns.php:125
- type SqlSemantics\Platform\MySql\Statement\Query\Set\LeadingUnion packages/sql-semantics-mysql/src/Statement/Query/Set/LeadingUnion.php:58
- type SqlSemantics\Platform\MySql\Statement\Query\Set\OrderedSetOperation packages/sql-semantics-mysql/src/Statement/Query/Set/OrderedSetOperation.php:75