-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
SqliteDataRecord.GetStream only works with 32-bit keys #27138
Labels
area-adonet-sqlite
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
community-contribution
customer-reported
good first issue
This issue should be relatively straightforward to fix.
type-bug
Milestone
Comments
Indeed, that should be |
bricelam
added
type-bug
good first issue
This issue should be relatively straightforward to fix.
labels
Jan 11, 2022
Sure, if I'll send a PR tomorrow if I remember! Thanks for the quick confirmation, BTW 👍 |
cocowalla
added a commit
to cocowalla/efcore
that referenced
this issue
Jan 13, 2022
bricelam
pushed a commit
to cocowalla/efcore
that referenced
this issue
Jan 14, 2022
bricelam
added
the
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
label
Jan 14, 2022
ghost
pushed a commit
that referenced
this issue
Jan 14, 2022
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area-adonet-sqlite
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
community-contribution
customer-reported
good first issue
This issue should be relatively straightforward to fix.
type-bug
According to the SQLite docs, rowid is a signed 64-bit integer. However,
SqliteDataRecord.GetStream
treats it as a 32-bit integer: https://github.com/dotnet/efcore/blob/main/src/Microsoft.Data.Sqlite.Core/SqliteDataRecord.cs#L376I've confirmed this is an issue - when using a 64-bit integer as PK, the call to
GetInt32
can result in an overflow.Microsoft.Data.Sqlite version: 6.0.0
Target framework: .NET 6.0
Operating system: Windows 10
The text was updated successfully, but these errors were encountered: