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

Add tests for year type behavior #1395

Merged
merged 1 commit into from
Nov 10, 2022
Merged

Add tests for year type behavior #1395

merged 1 commit into from
Nov 10, 2022

Conversation

druvv
Copy link
Contributor

@druvv druvv commented Nov 10, 2022

Adding tests for dolthub/dolt#4742

@druvv druvv changed the title Fix year type behavior Add tests for year type behavior Nov 10, 2022
@druvv druvv marked this pull request as ready for review November 10, 2022 21:09
Copy link
Contributor

@max-hoffman max-hoffman left a comment

Choose a reason for hiding this comment

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

LGTM

},
// 0 is interpreted as 0000
{
Query: "INSERT INTO t VALUES (21, 0)",
Copy link
Contributor

Choose a reason for hiding this comment

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

what happens if you INSERT INTO t VALUES (22, '0')? Maybe not relevant for this specific PR, but seems like lots of potential edge cases of weird strings people could pass as years.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It counts as the year 2000. See case 19, and 20.

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.

None yet

2 participants