Support zero date and zero in date, via dedicated command line flag#31
Merged
shlomi-noach merged 6 commits intomasterfrom Oct 21, 2021
Merged
Support zero date and zero in date, via dedicated command line flag#31shlomi-noach merged 6 commits intomasterfrom
shlomi-noach merged 6 commits intomasterfrom
Conversation
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Author
|
Tests fail as expected: https://github.com/openark/gh-ost/pull/31/checks?check_run_id=3963105598 Will now work on functionality. |
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
…ort for 5.5 soon Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
dbussink
approved these changes
Oct 21, 2021
This was referenced Oct 21, 2021
This was referenced Aug 4, 2022
shlomi-noach
added a commit
that referenced
this pull request
Aug 21, 2022
* Merge pull request #31 from openark/zero-date Support zero date and zero in date, via dedicated command line flag * Merge pull request #32 from openark/existing-date-with-zero Support tables with existing zero dates * Remove un-needed ignore_versions file * Fix new lint errors from golang-ci update Co-authored-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Users may want to e.g.
datetime not null default '0000-00-00 00:00:00'. Right nowgh-ostuses the globalsql_mode, so if that is set to...NO_ZERO_IN_DATE,NO_ZERO_DATE...the alter will fail.There's a use case to allow users to still alter the table, and have
gh-ostmodifysql_modetemporarily on their behalf.Initial commit: adding a test that should fail a zero-date migration. Code to enable desired behavior will follow, and make the test work.