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

fix: add parameter consideration when hashing the query part with orderBy #206

Merged
merged 3 commits into from
Jun 10, 2024

Conversation

msmakouz
Copy link
Member

@msmakouz msmakouz commented Jun 7, 2024

🔍 What was changed

The orderBy method can accept a Cycle\Database\Injection\FragmentInterface. These can be instances of the Cycle\Database\Injection\Fragment and Cycle\Database\Injection\Expression classes. They may contain parameters, but these were not considered when hashing this part of the query. I added their consideration, similar to how it is done for the other parts of the query.

@msmakouz msmakouz requested a review from roxblnfk June 7, 2024 10:28
@msmakouz msmakouz self-assigned this Jun 7, 2024
@msmakouz msmakouz requested review from a team as code owners June 7, 2024 10:28
@msmakouz msmakouz changed the title test: add tests using fragments in orderBy test: add parameter consideration when hashing the query part with orderBy Jun 7, 2024
@msmakouz msmakouz changed the title test: add parameter consideration when hashing the query part with orderBy fix: add parameter consideration when hashing the query part with orderBy Jun 7, 2024
Copy link

codecov bot commented Jun 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.33%. Comparing base (122163b) to head (375f47b).

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x     #206      +/-   ##
============================================
+ Coverage     95.21%   95.33%   +0.12%     
- Complexity     1856     1859       +3     
============================================
  Files           130      130              
  Lines          5136     5143       +7     
============================================
+ Hits           4890     4903      +13     
+ Misses          246      240       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@roxblnfk roxblnfk merged commit e6f7bd0 into 2.x Jun 10, 2024
44 checks passed
@roxblnfk roxblnfk deleted the fix/orderby-hash branch June 10, 2024 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Released
Development

Successfully merging this pull request may close these issues.

2 participants