You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(sap): QueryBuilder parameter of type JS Date not escaped correctly - #11867
The PR removes explicit Date-to-string conversion logic, relying on the SAP HANA client to handle Date parameters natively. This should be validated to ensure the client properly handles Date objects across different scenarios (timezones, null dates, edge cases) and that the parameterized approach doesn't introduce any compatibility issues with the SAP HANA driver version being used.
The test only covers a basic date comparison scenario with greater-than-or-equal operator. Consider adding tests for other date operations (equality, less-than, between ranges), edge cases (null dates, timezone handling), and different date formats to ensure comprehensive coverage of the fix.
Refactor the test case to use an async function with a for...of loop instead of Promise.all to iterate through data sources, improving test reliability and error handling.
Why: The suggestion improves test robustness by replacing Promise.all with a for...of loop, which is a safer and more standard pattern for handling asynchronous operations and assertions within a test case.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of change
Before, JS
Dateparameters were embedded in SQL. Now, they will be passed to the client as parameters.Fixes #11414.
Pull-Request Checklist
v0.3branchFixes #00000tests/**.test.ts)docs/docs/**.md)