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

Column name encrypted is not supported by MySqlParser

XMLWordPrintable

      encrypted is not a keyword in mysql 5.7 and later.

      https://dev.mysql.com/doc/refman/5.7/en/keywords.html

      Bug report

      For bug reports, provide this information, please:

      What Debezium connector do you use and what version?

      debezium-connector-mysql-3.1.1.Final

      What is the connector configuration?

      What is the captured database version and mode of deployment?

      (E.g. on-premises, with a specific cloud provider, etc.)

      MySQL 5.7.19-log

      What behavior do you expect?

      What behavior do you see?

      Do you see the same behaviour using the latest released Debezium version?

      (Ideally, also verify with latest Alpha/Beta/CR version)

      Do you have the connector logs, ideally from start till finish?

      (You might be asked later to provide DEBUG/TRACE level log)

      How to reproduce the issue using our tutorial deployment?

      Add test in BinlogAntlrDdlParserTest
       
      @Test
      public void shouldSupportColumnNameEncrypted()

      {     String ddl = "CREATE TABLE t ( encrypted BIT NULL );";     parser.parse(ddl, tables);     assertThat(tables.size()).isEqualTo(1);     Table t = tables.forTable(new TableId(null, null, "t"));     assertThat(t).isNotNull();     assertThat(t.retrieveColumnNames()).containsExactly("c1");     assertThat(t.primaryKeyColumnNames()).isEmpty();     assertColumn(t, "c1", "BIT", Types.BIT, 1, -1, true, false, false); }

      Feature request or enhancement

      For feature requests or enhancements, provide this information, please:

      Which use case/requirement will be addressed by the proposed feature?

      Implementation ideas (optional)

              rh-ee-gpanice Giovanni Panice (Inactive)
              cy2008 y c (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: