[MDEV-20601] Make REPLICA a synonym for SLAVE in SQL statements Created: 2019-09-16  Updated: 2023-09-15  Resolved: 2020-02-04

Status: Closed
Project: MariaDB Server
Component/s: Replication
Fix Version/s: 10.5.1

Type: Task Priority: Critical
Reporter: Sergei Golubchik Assignee: Sujatha Sivakumar (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
PartOf
is part of MDEV-18777 Rename or alias slave-related stateme... Stalled
Problem/Incident
causes MDEV-24362 Privilege aliases are missing from SH... Open

 Description   

This could be done in the parser (don't forget to change both default and oracle-mode parsers), with a rule

slave_or_replica: SLAVE | REPLICA_SYM ;

or in the lexer, with one-liner in lex.h

    { "REPLICA",  SYM(SLAVE)},



 Comments   
Comment by Sujatha Sivakumar (Inactive) [ 2020-01-07 ]

Hello Andrei,

Please review the changes for MDEV-20601.

Patch: https://github.com/MariaDB/server/commit/23686b2bafe2f3f9614d68923dfd4aea7641dbcc

BuildBot Results: http://buildbot.askmonty.org/buildbot/grid?category=main&branch=bb-10.5-sujatha

Thank you.

Comment by Andrei Elkin [ 2020-02-04 ]

Thanks for the patch!

Comment by Sujatha Sivakumar (Inactive) [ 2020-02-04 ]

Fix is implemented in 10.5.1

Generated at Thu Feb 08 09:00:44 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.