-
-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MySQL 8.0.17+ support: INT types no longer return a width specification
Fixes: #4216
- Loading branch information
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aee67c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying to understand PHP a bit more.. How does this make the script behave differently when it's MySQL 8 ?
aee67c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code just makes the
db_verify::diffStructurePermissive()
ignore any differences in the "value" when the "type" ends withINT
(includesMEDIUMINT
andBIGINT
, for instance). "value" here is the character width of the type. MySQL 8.0.17+ decided that the value is meaningless, so they removed it. This commit does the same thing and simply ignores the value by removing it.aee67c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.