Skip to content

Conversation

@druvv
Copy link
Contributor

@druvv druvv commented Nov 10, 2022

Adding tests for dolthub/dolt#4742

@druvv druvv force-pushed the dhruv/fix-year-type branch from 2b94a55 to 253d41e Compare November 10, 2022 19:56
@druvv druvv force-pushed the dhruv/fix-year-type branch from 253d41e to bf9b640 Compare November 10, 2022 21:09
@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
@druvv druvv requested a review from max-hoffman November 10, 2022 21:33
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.

@druvv druvv merged commit 0dafee9 into main Nov 10, 2022
@Hydrocharged Hydrocharged deleted the dhruv/fix-year-type branch March 29, 2023 01:09
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.

2 participants