-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Querying int columns as strings has broken in 2.1.37 #2056
Labels
Comments
That's because we didn't know it was a break. This is related to the GetValue change for strings, to mitigate against a npgsql behaviour. I've unlisted - will think of best path forward, probably a revert. |
This was referenced Mar 29, 2024
I have the same problem with decimal to string. |
Yup, we need to revert a change there (which is why 2.1.37 is hidden); I'll do that now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Might be intentional, but worked in 2.1.35, and I suspect a lot of people will be depending on it and pretty surprised, as there's no mention of a breaking change in the release notes.
To replicate, simply (I'm using Azure SQL Server):
In 2.1.35, this returns e.g. "42". In 2.1.37 it throws
System.InvalidCastException : Unable to cast object of type 'System.Int32' to type 'System.String'.
Fuller exception:
The text was updated successfully, but these errors were encountered: