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

An ALGORITHM or LOCK name the server of the release does not know.

The server rejects the statement while parsing it, with ER_UNKNOWN_ALTER_ALGORITHM or ER_UNKNOWN_ALTER_LOCK. Source: https://dev.mysql.com/doc/refman/8.4/en/alter-table.html#alter-table-performance.

Describing the problemdoctest
(new \SqlSemantics\Platform\MySql\Statement\Alter\Problem\UnknownAlterChoice(true, new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('FAST')))->message() // => 'FAST is not a LOCK the server knows.'

Properties§

public bool $lock
public Name $name

Methods§

public function __construct(public bool $lock, public Name $name)

Parameters

$lockboolWhether the name is a LOCK level (true) or an ALGORITHM (false)
$nameNameThe name as written
public function message(): string

Describes the problem.

Returns

string
Test cases 1

Test cases 1§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1

Relations§

Instantiated in 1