Open timbze opened 5 months ago
Could you provide TenderId and _context.Tender class definitions?
I did have TenderId in OP. Tender uses TenderId type as a property, where the issue is at. I can submit minimal repro Monday when I'm at my office.
I'm interested in working code for v5.4.1 as I was able to reproduce issue in v6, but it also doesn't work in v5 for me
Here's repro. https://github.com/timbze/Linq2Db4539
Thanks! List<Guid>
is what was missing, so I used List<TenderId>
instead
Thanks!
List<Guid>
is what was missing, so I usedList<TenderId>
instead
Yes, I had that wrong in OP, sorry about that
FYI, preview build on azure will be available in around 30 minutes if you want to retest it
I now tested the latest build 6.0.0-rc.13437
with my minimal repro and it still has the same error...
You are right, originally-reported issue is fixed, but not one from your sample app
There is another error I'm seeing in my tests but I am not sure if it's related to this same issue. I can make a new issue if you think it's separate.
In my code I have:
.Where(i => request.Id == null || i.d.Id == request.Id.Value.GuidValue)
I understood that the first part request.Id == null
would always have been checked locally before, but now it's trying to translate that also to SQL, but my request.Id type I never use in SQL so don't have any converters. And so now it's telling me there is no binary equal check for the request.Id type, which is true. But before I think that was checked locally.
Just update your sample app with additional query. I will create tests from both issues a bit later
Thank you, added second issue to sample app
Describe your issue
I have this issue in 6.0.0-preview.1. I did not have the issue in 5.4.1.
My query
TenderId struct
Generated SQL shows up for 6.0.0-preview.1 (looks correct)
If you are seeing an exception, include the full exceptions details (message and stack trace).
Environment details
Linq To DB
version: 6.0.0-preview.1Database (with version): PostgreSQL 16
ADO.NET Provider (with version): ?
Operating system: Ubuntu 22.04
.NET Version: 8