Skip to content

Timestamp/Date comparisons between nulls and records with values #70

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

Merged
merged 1 commit into from
Apr 6, 2021

Conversation

darnjo
Copy link
Member

@darnjo darnjo commented Apr 5, 2021

Fixes Issue #60.

Note that the comparisons between null timestamps/dates and ones with values was working as expected in this case, as outlined by the OData spec.

Greater than and the other comparison operators are supposed to return false if one value is null and the other has a value.

There was an issue, however, in that we were attempting to access properties when the underlying object was null and that's what was throwing an exception. This should be fixed now. cc: @dgmyrek

@darnjo darnjo self-assigned this Apr 5, 2021
@darnjo darnjo added the bug Something isn't working label Apr 5, 2021
@darnjo darnjo marked this pull request as draft April 6, 2021 00:13
@darnjo darnjo marked this pull request as ready for review April 6, 2021 00:13
@darnjo darnjo merged commit b59ab5b into main Apr 6, 2021
@darnjo darnjo deleted the issue-60-null-timestamp-handling branch April 6, 2021 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"@orderby-timestamp-asc-filter-int-gt" and "@orderby-timestamp-asc" fail when processing null values
1 participant