final class UnknownGrantColumn
    implements Diagnostic
    uses Snapshot
Public API: explicitly declared with @visibility public.

A column of a column privilege that the completely declared table of GRANT does not have.

The server rejects the statement with ER_BAD_FIELD_ERROR (mysql_table_grant). REVOKE does not check the columns. Source: https://dev.mysql.com/doc/refman/8.4/en/grant.html#grant-column-privileges.

Describing the problemdoctest
(new \SqlSemantics\Platform\MySql\Statement\Account\Problem\UnknownGrantColumn(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('c'), new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\QualifiedName(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('t'))))->message() // => 'Column c does not exist in table t.'

Properties§

public Name $column
public QualifiedName $table

Methods§

public function __construct(public Name $column, public QualifiedName $table)

Parameters

$columnNameThe column as written
$tableQualifiedNameThe table as written
public function message(): string

Describes the problem.

Returns

string
Test cases 1

Test 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§

Instantiated in 1