final class AbsentGrantTable
    implements TableResolution
    uses Snapshot
Public API: explicitly declared with @visibility public.

The resolution of a table name a complete context does not declare, at a grant level where the table need not exist.

GRANT may name a table that does not exist when the granted privileges include CREATE and no column privilege is granted; REVOKE does not check the table at all. It is not a diagnostic. Source: https://dev.mysql.com/doc/refman/8.4/en/grant.html#grant-table-privileges ("the privileges to be granted must include the CREATE privilege").

Granting CREATE on a table that does not exist yetdoctest
$grant = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('GRANT CREATE ON t TO u', []);
    $grant->facts->relation($grant->statement->level)->table instanceof \SqlSemantics\Platform\MySql\Statement\Account\Privilege\Level\AbsentGrantTable // => true

Properties§

Methods§

public function __construct(public QualifiedName $name)

Parameters

$nameQualifiedNameThe name as the statement wrote it

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