classRefusedSetting
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.
(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§
public ReplicationError $errorMethods§
public function __construct(public ReplicationError $error)Parameters
$error | ReplicationError | The check the value fails |
public function message(): stringDescribes the problem.
Returns
stringTest 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
ChangeReplicationFilterTest::testDeriveStatementReportsAPatternWithoutDotcallsStartGroupReplicationTest::testDeriveStatementReportsALongPasswordcallsStartReplicaTest::testDeriveStatementReportsRefusedConditionscallsResetBinaryLogsTest::testDeriveTargetReportsAFileNumberOutOfRangecallsResetTest::testDeriveStatementDerivesEveryItemcallsChangeReplicationSourceTest::testDeriveStatementReportsRefusedSettingscalls
Relations§
Instantiated in 8
- new SqlSemantics\Platform\MySql\Rules\Replication\SourceSettings::option() packages/sql-semantics-mysql/src/Rules/Replication/SourceSettings.php:81
- new SqlSemantics\Platform\MySql\Rules\Replication\SourceSettings::lineFeed() packages/sql-semantics-mysql/src/Rules/Replication/SourceSettings.php:147
- new SqlSemantics\Platform\MySql\Statement\Replication\Filter\ChangeReplicationFilter::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Filter/ChangeReplicationFilter.php:68
- new SqlSemantics\Platform\MySql\Statement\Replication\Group\StartGroupReplication::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Group/StartGroupReplication.php:66
- new SqlSemantics\Platform\MySql\Statement\Replication\Replica\StartReplica::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Replica/StartReplica.php:90
- new SqlSemantics\Platform\MySql\Statement\Replication\Replica\StartReplica::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Replica/StartReplica.php:95
- new SqlSemantics\Platform\MySql\Statement\Replication\Reset\ResetBinaryLogs::deriveTarget() packages/sql-semantics-mysql/src/Statement/Replication/Reset/ResetBinaryLogs.php:67
- new SqlSemantics\Platform\MySql\Statement\Replication\Reset\ResetBinaryLogs::deriveTarget() packages/sql-semantics-mysql/src/Statement/Replication/Reset/ResetBinaryLogs.php:69