Skip to content

Conversation

Hydrocharged
Copy link
Contributor

Here is a comprehensive set of tests for default logic. Practically everything that was added in #174 is covered here, including some edge cases. In addition, the memory table implementation was broken/insufficient in a few ways, so I patched those up.

The biggest change besides the tests is the additional pass when projecting expressions. This is required in order for defaults that reference other columns (especially those that come after) to be able to pull the correct value. This was something I noticed only after I wrote a test that wasn't behaving as expected (compared to the MySQL client). In fact, all of the changes outside of enginetests were due to fixing bugs that were found from testing.

@Hydrocharged Hydrocharged requested a review from zachmu August 28, 2020 09:45
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

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

Great work

Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

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

LG

@Hydrocharged Hydrocharged force-pushed the daylon/column-defaults-tests branch from 8b34165 to 9b03717 Compare August 29, 2020 01:32
@Hydrocharged Hydrocharged merged commit a111ad7 into daylon/column-defaults Aug 29, 2020
@Hydrocharged Hydrocharged deleted the daylon/column-defaults-tests branch August 29, 2020 01:42
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