Skip to content
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

Cannot compare or sort by Unique Identified #95

Closed
kind-serge opened this issue Feb 6, 2018 · 9 comments
Closed

Cannot compare or sort by Unique Identified #95

kind-serge opened this issue Feb 6, 2018 · 9 comments
Assignees

Comments

@kind-serge
Copy link

kind-serge commented Feb 6, 2018

Such query snippet does not work: .Where(x => x.Id.CompareTo(anotherGuid) >= 0) where Id and anotherGuid are of type Guid. The exception says:

The binary operator GreaterThanOrEqual is not defined for the types 'System.Nullable1[System.Guid]' and 'System.Nullable1[System.Guid]'.

@CoreyCaldwell
Copy link

CoreyCaldwell commented Feb 6, 2018

This works fine when run against an actual sql server instance, its only with the in memory effort implementation that this error occurs

@JonathanMagnan JonathanMagnan self-assigned this Feb 6, 2018
@JonathanMagnan
Copy link
Member

Hello @TYROTOXIN ,

Thank you for reporting.

We started to investigate and we successfully reproduced the issue and make a quick fix.

However, we didn't release the fix yet. We want first to investigate more this scenario to make sure we don't create some side effect.

Best Regards,

Jonathan

@kind-serge
Copy link
Author

That was fast 👍 Thanks, we are definitely looking forward for the updated release.

@JonathanMagnan
Copy link
Member

Hello @TYROTOXIN ,

Just to let you know, the fix has been completed.

We are not the original owner of this library, so I contacted him since I currently have some trouble to release it.

I will try to keep you updated.

Best Regards,

Jonathan

@JonathanMagnan
Copy link
Member

JonathanMagnan commented Feb 18, 2018

Hello @TYROTOXIN ,

Here is a small update:
We successfully contacted the original owner of the library, we are currently waiting for his answer about what we do wrong when releasing

@kind-serge
Copy link
Author

Thanks, take your time, it will take a while for us to upgrade to the latest version when available in any case.

@JonathanMagnan
Copy link
Member

Hello @TYROTOXIN , @CoreyCaldwell ,

The version 1.3.2 has been released

Nullable Guid comparison support has been added in this version.

Best Regards,

Jonathan

@kind-serge
Copy link
Author

Appreciate it @JonathanMagnan , I'll try the fix next week.

@JonathanMagnan
Copy link
Member

Hello @TYROTOXIN ,

This issue will be closed since it has been resolved.

Feel free to reopen it if you feel otherwise.

Best Regards,

Jonathan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants