Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBZ-49 MySQL DDL parser should be more tolerant of REFERENCE clauses in CREATE TABLE statements #42

Merged
merged 1 commit into from
May 13, 2016

Commits on May 13, 2016

  1. DBZ-49 MySQL DDL parser is more tolerant of REFERENCE clauses in CREA…

    …TE TABLE statements
    
    MySQL 5.6 using the MyISAM engine will create the `help_relation` system table using a CREATE TABLE statement that does not have in the columns' REFERENCE clause a list of columns in the referenced table. MySQL 5.7 using the InnoDB engine does not include the REFERENCE clauses.
    
    Because Debezium's MySQL DDL parser is meant only to understand the statements recorded in the binlog, it does not have to validate the statements and therefore the DDL parser can be a bit more lenient by not requiring the list of columns in a REFERENCE clause in a CREATE TABLE statement's column definitions.
    
    This commit also adds several unit tests that validate all of the DDL statements used by MySQL 5.6 and 5.7 during startup (in the configurations used in our integration tests).
    rhauch committed May 13, 2016
    Configuration menu
    Copy the full SHA
    97d5caa View commit details
    Browse the repository at this point in the history