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

Update retention model sql query #24249

Merged
merged 1 commit into from
Mar 25, 2023
Merged

Conversation

mjankowski
Copy link
Contributor

In Rails 7 the arguments for select_all changed how the "binds" are prepared. This change updates the method to use a more clear sql preparation and sanitization approach and calls the query more simply.

As far as I can tell the generated SQL query and the resulting cohort object produced stay the same with this change.

(Extracted in advance from #24241)

In Rails 7 the arguments for `select_all` changed how the "binds" are
prepared. This change updates the method to use a more clear sql
preparation and sanitization approach and calls the query more simply.
@Gargron Gargron merged commit e63524f into mastodon:main Mar 25, 2023
@mjankowski mjankowski deleted the r7-prep-sql-select branch March 26, 2023 01:39
neatchee pushed a commit to neatchee/mastodon that referenced this pull request Mar 27, 2023
neatchee pushed a commit to neatchee/mastodon that referenced this pull request Mar 28, 2023
arachnist pushed a commit to arachnist/mastodon that referenced this pull request Apr 4, 2023
skerit pushed a commit to 11ways/mastodon that referenced this pull request Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants