Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
unprepared_statement
to work it when nesting
I've been reported a problem by @osyo-manga, preloading queries in `unprepared_statement` doesn't work as expected in main branch (queries are executed as prepared statements). It is caused by #41385, due to `scope.to_sql` in `grouping_key` depends on `unprepared_statement` which has an issue when nesting. To fix the issue, don't add/delete object_id in the prepared statements disabled cache if that is already disabled.
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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