classMissingColumn
final class MissingColumn
implements Resolution, Diagnostic
uses Snapshot
Public API: explicitly declared with
@visibility public.A name that no visible relation has, established by complete declarations.
$semantics = new \SqlSemantics\Platform\Sqlite\Semantics();
$table = $semantics->analyze('CREATE TABLE t (a INTEGER)');
$semantics->analyze('SELECT b FROM t', [$table]) // throws \SqlSemantics\Platform\Sqlite\Model\Diagnostic\SemanticException: Column b does not exist.Properties§
public Name $namepublic QualifiedName|null $qualifier = nullMethods§
public function __construct(public Name $name, public QualifiedName|null $qualifier = null)Parameters
$name | Name | The column name |
$qualifier | QualifiedName|null | The relation qualifier the use wrote |
public function message(): stringDescribes the problem.
Returns
stringTest cases 57§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 55
DerivationTest::testInspectedDiscardsDeclarationsAndRowsButKeepsFactsAndDiagnosticscallsDerivationTest::testReportRecordsAProblemThatIsNoResolutioncallsDerivationTest::testScalarRecordsTheFactAndADiagnosticResolutioncallsColumnLookupTest::testFindAdmitsOnlyTheOccurrenceTheQualifierNamescallsColumnLookupTest::testFindIsMissingOnlyWhenEverySearchedOccurrenceIsCompletecallsColumnLookupTest::testFindSkipsHiddenSlotsForAnUnqualifiedNamecallsDiagnosticTest::testMessageDescribesEachProblemInDerivationOrdercallsResolutionTest::testTheFiveOutcomesAreTheOnlyResolutionscallsScriptTest::testDeriveStatementDerivesEveryMemberAgainstTheSameContextcallsInvalidTest::testCauseIsTheDiagnosticThatLeavesTheExpressionWithoutATypecallsInsertFactsTest::testDeriveLetsUpsertsSeeTheTargetAndExcludedInTheRightPlacescallsMutationScopeTest::testAssignChecksTheColumnsAndTheWidthOfEachAssignmentcallsMutationScopeTest::testNamesReportsColumnsAClosedTargetCertainlyLackscallsTriggerFactsTest::testDeriveHidesTheRowThatTheEventDoesNotProvidecallsTriggerFactsTest::testDeriveMakesTheRowsOfTheEventVisibleByQualifierOnlycallsTriggerFactsTest::testDeriveReportsTriggerOnlyMisusesAndTheColumnsOfUpdateOfcallsSelectFactsTest::testLimitDerivesTheExpressionsWithoutTheColumnsOfTheSelectioncallsColumnFactsTest::testDenotedAnswersTheOutcomeOfAnUngroupedNameUsecallsColumnFactsTest::testDenotedLooksThroughGroupingsToTheNameUsecallsColumnFactsTest::testOfIsInvalidForAProblemResolutioncallsColumnResolverTest::testFindReportsAmbiguityAndHonoursHiddenAndQualifiedOnlyRelationscallsColumnResolverTest::testFindResolvesUnqualifiedQualifiedAndImplicitNamescallsJoiningTest::testJoinReportsAUsingColumnThatAClosedSideLackscallsAttachTest::testDeriveStatementDerivesEveryOperandWhereNoRelationIsVisiblecallsColumnUseTest::testDeriveScalarReportsAMissingColumncallsExplainTest::testDeriveStatementDiscardsTheRowsAndTheDeclarationOfTheInspectedStatementcallsVacuumTest::testDeriveStatementDerivesTheTargetWhereNoRelationIsVisiblecallsConflictTargetTest::testTermsAndPredicateSeeTheTargetTableOnlycallsDeleteTest::testDeriveStatementMakesReturningTheOutputOfTheTargetRowcallsInsertDefaultsTest::testDeriveStatementReportsAColumnTheTableLackscallsInsertRowsTest::testDeriveStatementReportsAColumnTheTableLackscallsInsertRowsTest::testDeriveWithinLetsDoUpdateSeeTheTableAndExcludedcallsRowAssignmentTest::testColumnsMustMatchTheWidthOfTheValuecallsUpdateTest::testDeriveStatementReportsAnAssignmentToAColumnTheTableLackscallsUpdateTest::testDeriveWithinLetsReturningSeeTheTargetOnlycallsSelectTest::testDeriveQueryKeepsLimitFromSeeingTheColumnscallsSelectTest::testDeriveQueryKeepsResultColumnsFromSeeingEachOthercallsValuesClauseTest::testDeriveQuerySeesNoRelationOfItsOwncallsDerivedQueryTest::testDeriveRelationNamesAnUnaliasedExpressionAfterItsTextcallsJoinUsingTest::testColumnsMustBePresentOnBothSidesWhenTheyAreKnowncallsNestedInputTest::testDeriveRelationRenamesASingleTableByTheAliascallsTableInputTest::testAliasHidesTheTableNamecallsColumnCheckTest::testDeriveConstraintReportsANameThatIsNoColumncallsColumnConstraintTest::testDeriveConstraintDerivesEachKindOfOperandInItsOwnScopecallsDefaultExpressionTest::testDeriveConstraintSeesNoColumncallsGeneratedTest::testDeriveConstraintDoesNotSeeTheRowIdentifiercallsCreateIndexTest::testDeriveStatementReportsAMissingTableAndAMissingColumncallsCreateIndexTest::testDeriveStatementSeesNoRowIdentifierInAnIndexedExpressioncallsLiteralColumnTest::testDeriveScalarReportsANameThatIsNoColumncallsTableCheckTest::testDeriveConstraintReportsANameThatIsNoColumncallsTableConstraintTest::testDeriveConstraintDerivesTheOperandsOfEachConstraintcallsTablePrimaryKeyTest::testDeriveConstraintReportsAMissingKeyColumncallsTableUniqueTest::testDeriveConstraintReportsAMissingColumnAndAnExpressionTermcallsCreateTriggerTest::testDeriveStatementChecksTheColumnsOfAnUpdateOfTriggercallsCreateTriggerTest::testDeriveStatementHidesTheRowThatTheEventDoesNotProvidecalls
Relations§
Instantiated in 4
- new SqlSemantics\Platform\Sqlite\Model\Resolution\ColumnLookup::find() packages/sql-semantics-sqlite/src/Model/Resolution/ColumnLookup.php:54
- new SqlSemantics\Platform\Sqlite\Rules\Mutation\MutationScope::names() packages/sql-semantics-sqlite/src/Rules/Mutation/MutationScope.php:77
- new SqlSemantics\Platform\Sqlite\Rules\Resolution\ColumnResolver::find() packages/sql-semantics-sqlite/src/Rules/Resolution/ColumnResolver.php:91
- new SqlSemantics\Platform\Sqlite\Rules\Resolution\Joining::join() packages/sql-semantics-sqlite/src/Rules/Resolution/Joining.php:61
Type checks 3
- instanceof SqlSemantics\Platform\Sqlite\Rules\Resolution\ColumnFacts::denoted() packages/sql-semantics-sqlite/src/Rules/Resolution/ColumnFacts.php:80
- instanceof SqlSemantics\Platform\Sqlite\Statement\Expression\DoubleQuotedWord::deriveScalar() packages/sql-semantics-sqlite/src/Statement/Expression/DoubleQuotedWord.php:59
- instanceof SqlSemantics\Platform\Sqlite\Statement\Expression\TruthWord::deriveScalar() packages/sql-semantics-sqlite/src/Statement/Expression/TruthWord.php:53