Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-20601

Make REPLICA a synonym for SLAVE in SQL statements

    XMLWordPrintable

    Details

      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)},
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sujatha.sivakumar Sujatha Sivakumar
              Reporter:
              serg Sergei Golubchik
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: