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\PostgreSql\Semantics();
$table = $semantics->analyze('CREATE TABLE t (a INTEGER)');
$semantics->analyze('SELECT b FROM t', [$table]) // throws \SqlSemantics\Platform\PostgreSql\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 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Other tests reaching this symbol 7
LateralReachTest::testReachedFindsTheBarredRelationOfAQualifiercallsRelationTargetsTest::testColumnReportsAMissingColumncallsRoutineFactsTest::testCreateHidesParametersFromDefaultscallsTypeLookupTest::testColumnAnswersTheDeclaredTypeOfTheColumncallsColumnReferenceTest::testDeriveScalarReportsAMissingColumncallsCommentTest::testDeriveStatementChecksTheColumncallsRenameTest::testDeriveStatementChecksTheRenamedColumncalls
Relations§
Instantiated in 4
- new SqlSemantics\Platform\PostgreSql\Model\Resolution\ColumnLookup::find() packages/sql-semantics-postgres/src/Model/Resolution/ColumnLookup.php:54
- new SqlSemantics\Platform\PostgreSql\Rules\Access\GrantedRelations::columns() packages/sql-semantics-postgres/src/Rules/Access/GrantedRelations.php:82
- new SqlSemantics\Platform\PostgreSql\Rules\Routine\RelationTargets::member() packages/sql-semantics-postgres/src/Rules/Routine/RelationTargets.php:140
- new SqlSemantics\Platform\PostgreSql\Rules\Typing\TypeLookup::member() packages/sql-semantics-postgres/src/Rules/Typing/TypeLookup.php:119