classReplicationNoise
final class ReplicationNoise
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.
The noise and synonym token positions of the productions of replication statements.
Only a token with no influence on meaning in its production may be listed as noise, and only terminals the manual defines as synonyms may share a key. Every entry is listed in the method documentation with its reason and the manual page that states it. Nothing else is skipped or merged by the token correspondence check.
Methods§
public static function positions(): array<string, list<int>>Answers the noise positions by production signature.
change_replication_source: REPLICATION SOURCE_SYMposition 0: the two words REPLICATION SOURCE are one keyword of the statement, keyed by SOURCE_SYM, so that they compare with their synonym MASTER (see synonyms()).master_or_binary_logs_and_gtids: BINARY_SYM LOGS_SYM AND_SYM GTIDS_SYMpositions 1 to 3: the four words BINARY LOGS AND GTIDS are one keyword, keyed by BINARY_SYM, so that they compare with their synonym MASTER.ignore_server_id_list: ignore_server_id_list , ignore_server_idposition 1: the separator of the server identifiers. The list may begin with an empty element (IGNORE_SERVER_IDS = ( , 2)), which adds no identifier: the server collects the identifiers of the ignore_server_id items only (sql/sql_yacc.yy, rules ignore_server_id_list and ignore_server_id; https://dev.mysql.com/doc/refman/8.4/en/change-replication-source-to.html#crs-opt-ignore_server_ids). The identifiers are kept as a list, so the separators carry nothing more.
Returns
array<string, list<int>>Test cases 2
public static function synonyms(): array<string, array<int, string>>Answers the key of each synonym position by production signature.
change_replication_source: MASTER_SYMand everychange_replication_source_*andsource_log_*alternative spelled MASTER_ (8.0 to 8.3): CHANGE MASTER TO and its MASTER_ options are the deprecated aliases of CHANGE REPLICATION SOURCE TO and its SOURCE_ options; the parser fills the same LEX_SOURCE_INFO field and only adds a deprecation warning (https://dev.mysql.com/doc/refman/8.0/en/change-master-to.html: "From MySQL 8.0.23, use CHANGE REPLICATION SOURCE TO in place of CHANGE- MASTER TO, which is deprecated from that release"; sql/sql_yacc.yy of 8.0.44, rules change_replication_source_*).
reset_option: SLAVE opt_replica_reset_options opt_channel(8.0 to 8.3): RESET SLAVE is the deprecated alias of RESET REPLICA, setting the same REFRESH_REPLICA flag (https://dev.mysql.com/doc/refman/8.0/en/reset-slave.html, https://dev.mysql.com/doc/refman/8.0/en/reset-replica.html). The SLAVE of the rulereplicais not listed: SHOW SLAVE STATUS and SHOW REPLICA STATUS name their result columns after it, so START and STOP keep it.master_or_binary_logs_and_gtids: MASTER_SYM(8.2, 8.3): RESET MASTER is the deprecated form of RESET BINARY LOGS AND GTIDS, setting the same REFRESH_SOURCE flag (https://dev.mysql.com/doc/relnotes/mysql/8.2/en/news-8-2-0.html: "MySQL 8.2 deprecates ... RESET MASTER (use RESET BINARY LOGS AND GTIDS- instead)").
persisted_variable_ident: DEFAULT_SYM . identposition 0: the server names the componentdefaultwhether DEFAULT is the keyword or a quoted identifier (sql/sql_yacc.yy, rule persisted_variable_ident; https://dev.mysql.com/doc/refman/8.4/en/reset-persist.html).
Returns
array<string, array<int, string>>Test cases 2
Test cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.