Skip to content

Conversation

@ajcvickers
Copy link
Contributor

Fixes #32896

@ajcvickers ajcvickers requested a review from a team January 25, 2024 20:06
Copy link
Member

@roji roji left a comment

Choose a reason for hiding this comment

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

I'm not sure, but shouldn't we be throwing for an empty string, since it's invalid JSON?

@ajcvickers
Copy link
Contributor Author

You're right; I didn't realize the empty string was invalid JSON.

@ajcvickers ajcvickers force-pushed the 240125_ToInfinityAndBeyond branch from 967dc60 to 7c9e269 Compare January 26, 2024 10:20
@ajcvickers ajcvickers changed the title Support empty strings in primitive collection columns Throw for empty strings in primitive collection columns Jan 26, 2024
@ajcvickers ajcvickers requested a review from a team January 26, 2024 10:22
@ajcvickers
Copy link
Contributor Author

Updated to throw.

<!--
Microsoft ResX Schema
<!--
Copy link
Member

Choose a reason for hiding this comment

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

nit: unrelated whitespace changes (I get this too all of the time)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it's because the T4 that we generate from does not create code that conforms to our formatting, so whenever the file is opened in an editor, it changes from what was generated by T4.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I remove the changes (git checkout -p) every time as well. It sucks.

@ajcvickers ajcvickers merged commit 327fbc3 into main Jan 26, 2024
@ajcvickers ajcvickers deleted the 240125_ToInfinityAndBeyond branch January 26, 2024 11:50
maumar pushed a commit that referenced this pull request Feb 7, 2024
…#32928)

* Throw for empty strings in primitive collection columns (#32924)

Fixes #32896

* Quirk
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.

Query never returns when DB value for column mapped to primitive collection is ''

2 participants