-
-
Notifications
You must be signed in to change notification settings - Fork 238
Fix datetime functions to return correct results for 0 and false
#3305
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
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
7c6be64
add day tests, move log tests out of broken tests section
angelamayxie cbfb02c
add more tests, clean ups
angelamayxie 1b24b75
new value for zeroTime, update tests, add more datetime function test…
angelamayxie 0d42aa0
add query test for 0000-01-01 timestamp
angelamayxie bce68e6
day function has been fixed
angelamayxie 9a812be
making more progress on getting tests to pass
angelamayxie 76cb5d0
fix monthname
angelamayxie ed696d2
fix week, modify getDate to use evaluated value
angelamayxie 8acd85d
fix weekday, add warnings to getDatePart
angelamayxie 2330e41
fix weekofyear
angelamayxie ae3a154
fix yearweek, update test case for quarter
angelamayxie 713f050
fix int values for extract week
angelamayxie 50a441f
update quarter zero timestamp test
angelamayxie f449846
fix to_days function
angelamayxie 700dd84
fix quarter
angelamayxie e839a23
update time function tests
angelamayxie 50099a5
update zeroTime value in tests
angelamayxie ccedfeb
[ga-format-pr] Run ./format_repo.sh to fix formatting
angelamayxie 855df22
simplify microsecond function
angelamayxie abfb060
Merge branch 'main' of https://github.com/dolthub/go-mysql-server int…
angelamayxie b207193
update and add more tests
angelamayxie 069ac91
Merge branch 'angela/date_functions' of https://github.com/dolthub/go…
angelamayxie f235adf
[ga-format-pr] Run ./format_repo.sh to fix formatting
angelamayxie da0a99d
update microseconds test to be less flaky
angelamayxie 82e17dd
Merge branch 'angela/date_functions' of https://github.com/dolthub/go…
angelamayxie 06b56ec
add extract tests
angelamayxie fd6b865
add more extract tests
angelamayxie 4638265
fix extract functions
angelamayxie e4f775b
fix date function
angelamayxie 2047b55
add mysql dialect tag
angelamayxie 8d1d4b4
fix more time functions
angelamayxie ed21f64
fix missing
angelamayxie 718eb86
update date function to allow for zero time
angelamayxie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.