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

Upgrade mysql connector to 8.0.22 - fix test table creation #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexkirnos
Copy link
Contributor

MySql version 8 demand that each created table will have not nullable primary key.
This affects only the tests that creates the tables on the dynamically.
Solution : fix the tables definitions in the tests.

@@ -9,7 +9,7 @@ public class ChildTable extends AbstractDataTable<ChildTable> {

public static final ChildTable INSTANCE = new ChildTable("ChildTable");

public final TableField<Record, Integer> id = createPKField("id", SQLDataType.INTEGER.identity(true));
public final TableField<Record, Integer> id = createPKField("id", SQLDataType.INTEGER.identity(true).identity(true));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicate call to identity()

@@ -9,7 +9,7 @@ public class ParentTable extends AbstractDataTable<ParentTable> {

public static final ParentTable INSTANCE = new ParentTable("ParentTable");

public final TableField<Record, Integer> id = createPKField("id", SQLDataType.INTEGER.identity(true));
public final TableField<Record, Integer> id = createPKField("id", SQLDataType.INTEGER.identity(true).identity(true));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants