Skip to content

Generalize types in CASE, IF, and IFNULL#3032

Merged
angelamayxie merged 7 commits intomainfrom
angela/ifnull
Jun 16, 2025
Merged

Generalize types in CASE, IF, and IFNULL#3032
angelamayxie merged 7 commits intomainfrom
angela/ifnull

Conversation

@angelamayxie
Copy link
Copy Markdown
Contributor

@angelamayxie angelamayxie commented Jun 13, 2025

Fixes dolthub/dolt#9321
Generalize types in CASE, IF, and IFNULL as described by MySQL docs

@angelamayxie angelamayxie requested a review from jycor June 13, 2025 23:49
@angelamayxie angelamayxie changed the title Generalize types in IFNULL Generalize types in CASE, IF, and IFNULL Jun 16, 2025
@angelamayxie angelamayxie marked this pull request as ready for review June 16, 2025 21:38
Copy link
Copy Markdown
Contributor

@jycor jycor left a comment

Choose a reason for hiding this comment

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

Looks great!
Seems like this helper method will be very useful in other places.

@angelamayxie angelamayxie merged commit cd45932 into main Jun 16, 2025
8 checks passed
@angelamayxie angelamayxie deleted the angela/ifnull branch June 16, 2025 22:38
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.

Using an IFNULL with TINYINT param restricts the output as TINYINT

2 participants