classUnknownAlterChoice
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.
(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 $lockpublic Name $nameMethods§
public function __construct(public bool $lock, public Name $name)Parameters
$lock | bool | Whether the name is a LOCK level (true) or an ALGORITHM (false) |
$name | Name | The name as written |
public function message(): stringDescribes the problem.
Returns
stringTest cases 1
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.