Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-2239

Alter table query are having issues while parsing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 1.0.0.Final
    • mysql-connector
    • None
    • Hide

      Try adding a testcase in ddl-parser with above mentioned code, and testcase will fail

      Show
      Try adding a testcase in ddl-parser with above mentioned code, and testcase will fail

    Description

      String ddl = "ALTER TABLE testtbl RENAME INDEX t$testtbl$tbl$id TO testtbl$tbl$id"//tables size == 0 instead of 1String ddl = "ALTER TABLE testtbl RENAME INDEX testtbl$t$col TO testtbl$col";String ddl = "ALTER TABLE testtbl RENAME INDEX testtbl$col TO testtbl$t$post$col";
        
      parser.parse(ddl, tables);
      
      //All the above queries pass below assertion:
      assertThat(((MySqlAntlrDdlParser)parser).getParsingExceptionsFromWalker().size()).isEqualTo(0);
        
      //But gives exception for
       assertThat(tables.size()).isEqualTo(1);

      Attachments

        Activity

          People

            Unassigned Unassigned
            ritesh277coe Ritesh Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: