-
Notifications
You must be signed in to change notification settings - Fork 9
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
Upgrade package dependencies #163
Conversation
@Aaronontheweb I'm a little bit stuck, if you have some time and could have a look if you find something please? If you debug at if (config.ProviderName.ToLower().Contains("sqlite") ||
config.ProviderName.ToLower().Contains("postgresql"))
{
builder
.Member(r => r.Created)
.HasDataType(DataType.Int64)
.HasConversion(
r => r.Ticks,
r => new DateTime(r));
} However, when it tries to read them, it fails with:
If you debug I currently have no idea yet why this is happening. I was trying to find a way to debug the exact query being sent to Sqlite, maybe it doesn't convert the |
Of course, by typing out my problem I get a step closer to the answer :) I managed to find the query it sends to the database: SELECT
[r].[persistence_id],
[r].[sequence_number],
[r].[created],
[r].[snapshot],
[r].[manifest],
[r].[serializer_id]
FROM
[snapshot] [r]
WHERE
[r].[persistence_id] = @persistenceId AND [r].[sequence_number] <= @sequenceNr AND
DateTime([r].[created]) <= DateTime(@timestamp_1)
ORDER BY
[r].[sequence_number] DESC
LIMIT @take That |
@CumpsD I'll look into it |
Just checked with the SELECT
[r].[persistence_id],
[r].[sequence_number],
[r].[created],
[r].[snapshot],
[r].[manifest],
[r].[serializer_id]
FROM
[snapshot] [r]
WHERE
[r].[persistence_id] = @persistenceId AND [r].[sequence_number] <= @sequenceNr AND
[r].[created] <= @timestamp_1
ORDER BY
[r].[sequence_number] DESC
LIMIT @take I'll have a look at linq2db, I'm guessing something changed in the breaking changes from 3->5. I've read all the release notes though, guess I missed something |
Upgrading linq2db to SELECT
[r].[persistence_id],
[r].[sequence_number],
[r].[created],
[r].[snapshot],
[r].[manifest],
[r].[serializer_id]
FROM
[snapshot] [r]
WHERE
[r].[persistence_id] = @persistenceId AND [r].[sequence_number] <= @sequenceNr AND
DateTime([r].[created]) <= DateTime(@timestamp_1)
ORDER BY
[r].[sequence_number] DESC
LIMIT @take So not even in the breaking changes ;) I will look further as to where it happened |
I'll have a look at what changed, also asked it in their repo: linq2db/linq2db#3343 (comment) |
Another tidbit of information: linq2db/linq2db#2432 |
For some reason, the azure checks don't run anymore |
I’ll need to fix that - repo name change broke itSent from my iPhoneOn Mar 21, 2023, at 4:05 AM, David Cumps ***@***.***> wrote:
For some reason, the azure checks don't run anymore
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@Arkatufus @Aaronontheweb it's ready for review now, the pipelines are fixed and ran everything succesfully. Upgrading Linq2db will be in a different PR since it has more impact, and is harder to upgrade (see above) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Upgrade dependencies and make sure the code still works