Skip to content

Remove DATETIME_PRECISION as it's not present in MySQL 5.5 #1193

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

Closed
wants to merge 2 commits into from
Closed

Remove DATETIME_PRECISION as it's not present in MySQL 5.5 #1193

wants to merge 2 commits into from

Conversation

malessainray
Copy link

Fixes #1192

malessainray and others added 2 commits July 18, 2022 16:42
Signed-off-by: Jonathan Malessa <malessa@inray.de>
Signed-off-by: Jonathan Malessa malessa@inray.de

Signed-off-by: Jonathan Malessa <malessa@inray.de>
@bgrainger
Copy link
Member

Please wait until #1190 is merged in, as it's going to replace all this code.

I also disagree with removing the column from later MySQL versions, just because an unsupported version of MySQL (5.5) doesn't have it. We need to find a better way to test for it at runtime.

Copy link
Member

@bgrainger bgrainger left a comment

Choose a reason for hiding this comment

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

Don't delete existing tests.

@@ -49,7 +49,6 @@ public void ColumnsSchema()
AssertHasColumn("CHARACTER_MAXIMUM_LENGTH", typeof(long));
AssertHasColumn("NUMERIC_PRECISION", typeof(ulong));
AssertHasColumn("NUMERIC_SCALE", typeof(ulong));
AssertHasColumn("DATETIME_PRECISION", typeof(uint));
Copy link
Member

Choose a reason for hiding this comment

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

This code exists to verify that changes haven't introduced a regression; you can't just delete it to make the tests pass.

@malessainray malessainray deleted the patch-1 branch July 20, 2022 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

MySQL 5.5 does not have DATETIME_PRECISION
2 participants