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

[Tables] Fix query filter encoding for Date objects #23058

Merged
merged 6 commits into from Sep 6, 2022

Conversation

dgetu
Copy link
Member

@dgetu dgetu commented Aug 30, 2022

Querying tables with a filter on a date field was not working. This change fixes that bug.

Fixes #22156

@ghost ghost added the Tables label Aug 30, 2022
@dgetu dgetu marked this pull request as ready for review August 30, 2022 21:55
@dgetu dgetu requested a review from joheredi as a code owner August 30, 2022 21:55
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@joheredi
Copy link
Member

joheredi commented Sep 2, 2022

/azp run js - data-tables - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@joheredi joheredi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks for adding a test :)

@@ -7,7 +7,7 @@ function escapeQuotesIfString(input: unknown, previous: string): string | unknow
if (typeof input === "string") {
result = escapeQuotes(input);
// check if we need to escape this literal
if (!previous.trim().endsWith("'")) {
if (previous !== "" && !previous.trim().endsWith("'")) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should have more unit tests for odata, as this has the potential to break more things than it fixes.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a test for escaping strings!

@dgetu
Copy link
Member Author

dgetu commented Sep 6, 2022

/azp run js - data-tables - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dgetu dgetu merged commit 144f831 into Azure:main Sep 6, 2022
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-js that referenced this pull request Mar 21, 2023
Make failover group status type object to fix resource sync (Azure#23058)

* Make status object to fix resource sync

* Remove trailing comma

* Move changes to 2023-03-15-preview

---------

Co-authored-by: Charmaine Chan <chachan@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to query entities by range with property with type DateTime
3 participants