-
-
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
InvalidProgramException on prerelease when first field is a non-numeric type #1279
Comments
Oddly, the existing |
Think I spotted it. In the main path, local 0 holds the current reader field index for retrieval on exceptions for diagnostic purposes. In the ValueTuple path, this local does not exist, so the following code writes into whatever local was created, which may be a string or byte[] local, created later on in the IL generation: |
That was it. PR incoming. |
@mgravell It seems very likely that this one is on me via #1242. I'll get a full repro and fix it ASAP.
https://www.myget.org/feed/stackoverflow/package/nuget/Dapper/1.60.14 works fine with
(int, string, string, DateTime?, DateTime?, DateTime?, decimal?, DateTime?, string, int?, DateTime?, DateTime?, int?)
rows.With
(string, byte[], byte[])
, it breaks:The text was updated successfully, but these errors were encountered: