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

A value of a replication statement that the server refuses while it parses the statement.

The statement is grammatical and fully structured; the server rejects it with the error the check names. Source: https://dev.mysql.com/doc/refman/8.4/en/change-replication-source-to.html.

Reading the refused value of a statementdoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('CHANGE REPLICATION SOURCE TO GTID_ONLY = 2') // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\SemanticException: SOURCE_CONNECTION_AUTO_FAILOVER and GTID_ONLY accept only 0 or 1 (ER_PARSE_ERROR).

Properties§

Methods§

public function __construct(public ReplicationError $error)

Parameters

$errorReplicationErrorThe check the value fails
public function message(): string

Describes the problem.

Returns

string
Test cases 1

Test cases 7§

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 6

Relations§

Instantiated in 8