Skip to content

Match quoted and unquoted check definitions during merge.#9437

Merged
jycor merged 6 commits intomainfrom
james/check
Jul 2, 2025
Merged

Match quoted and unquoted check definitions during merge.#9437
jycor merged 6 commits intomainfrom
james/check

Conversation

@jycor
Copy link
Copy Markdown
Contributor

@jycor jycor commented Jul 2, 2025

When resolving check constraints, we perform string comparison against a check's definition in the schema and from the create table statement. Since updating the check constraints to include backquotes (in this PR dolthub/go-mysql-server#3040), it's possible older check constraint definitions do not have backquotes.

This PR makes it so the check considered the case where backquotes are missing and adds a backwards compatibility test.

@coffeegoddd
Copy link
Copy Markdown
Contributor

@jycor DOLT

comparing_percentages
100.000000 to 100.000000
version result total
86c41ac ok 5937457
version total_tests
86c41ac 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Copy Markdown
Contributor

@coffeegoddd DOLT

comparing_percentages
100.000000 to 100.000000
version result total
81bf316 ok 5937457
version total_tests
81bf316 5937457
correctness_percentage
100.0

@coffeegoddd
Copy link
Copy Markdown
Contributor

@jycor DOLT

comparing_percentages
100.000000 to 100.000000
version result total
30a3240 ok 5937457
version total_tests
30a3240 5937457
correctness_percentage
100.0

Copy link
Copy Markdown
Contributor

@fulghum fulghum left a comment

Choose a reason for hiding this comment

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

Looks good!

@jycor jycor merged commit 8d80f65 into main Jul 2, 2025
21 checks passed
@jycor jycor deleted the james/check branch July 2, 2025 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants