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: qualify Emails::_createEmailQuery orderBy #3266

Merged

Conversation

msbit
Copy link
Contributor

@msbit msbit commented Sep 7, 2023

Add the table alias to the orderBy to avoid driver specific ambiguity in the generated SQL when joining against another table that also has a name column.

This is in line with States::_createStatesQuery, and should fix #3263.

Add the table alias to the `orderBy` to avoid driver specific ambiguity in
the generated SQL when joining against another table that _also_ has a `name`
column.

This is in line with `States::_createStatesQuery`, and should fix craftcms#3263.
@msbit msbit requested a review from a team as a code owner September 7, 2023 05:08
@lukeholder lukeholder merged commit c7ffb9c into craftcms:v3 Sep 7, 2023
13 checks passed
@msbit msbit deleted the fix/3263-qualify-email-query-order-by-v3 branch September 7, 2023 05:15
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