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

replicate_rewrite_db does not work for single char database name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5, 10.1, 10.2, 10.3, 10.0
    • Fix Version/s: 5.5.64
    • Component/s: Replication
    • Labels:
      None
    • Environment:
      All

      Description

      mdev.test

      # TBF - difference in row level logging
      -- source include/have_binlog_format_mixed_or_statement.inc
      -- source include/master-slave.inc
       
      connection master;
      SET sql_log_bin= 0;
      create database x;
      SET sql_log_bin= 1;
      use x;
       
      connection slave;
      SET sql_log_bin= 0;
      create database y;
      SET sql_log_bin= 1;
      use y;
       
      --connection master
      create table t1(a int);
      insert into t1 values(1);
       
      --sync_slave_with_master
      select * from y.t1;
       
       
      --source include/rpl_end.inc
      
      

      mdev-slave.opt

      "--replicate-rewrite-db=x->y"
      

      While running this test case I get this error

      CURRENT_TEST: rpl.rpl_one_char_db_rewrt_db
      180902 19:14:02 [ERROR] Bad syntax in replicate-rewrite-db - empty FROM db!
       
      180902 19:14:02 [ERROR] Aborting
       
      
      

        Attachments

          Activity

            People

            Assignee:
            sachin.setiya.007 Sachin Setiya
            Reporter:
            sachin.setiya.007 Sachin Setiya
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: