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

Support for OData Int64 identifiers #137

Open
gRegorLove opened this issue Jul 13, 2023 · 1 comment
Open

Support for OData Int64 identifiers #137

gRegorLove opened this issue Jul 13, 2023 · 1 comment

Comments

@gRegorLove
Copy link

I think the wrapKey function is not aware of 64-bit integers (Edm.Int64) with format [-] [0-9]+L.

I tried a query with one which generated the filter:
$filter=(ID eq '354760000354760L').

Instead, I would expect it to generate:
$filter=(ID eq 354760000354760L).

The error response from the service was:

The query specified in the URI is not valid. A binary operator with incompatible types was detected. Found operand types 'Edm.Int64' and 'Edm.String' for operator kind 'Equal'.

(Originally published at: https://gregorlove.com/2023/07/support-for-odata-int64-identifiers/)

@anderly
Copy link
Member

anderly commented Sep 6, 2023

@gRegorLove,

But you should be able to do 354760000354760 without the L suffix.

    $client->from('EntitySet')->whereKey(354760000354760);

Let me know if that doesn't work.

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

No branches or pull requests

2 participants