classUnknownGrantColumn
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.
(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 $columnpublic QualifiedName $tableMethods§
public function __construct(public Name $column, public QualifiedName $table)Parameters
$column | Name | The column as written |
$table | QualifiedName | The table as written |
public function message(): stringDescribes the problem.
Returns
stringTest cases 1
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.