-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix ansi sql query for 5.x #12919
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 ansi sql query for 5.x #12919
Conversation
ANSI sql standard is often used by managed cloud databases (aiven standard).
4875bba
to
c38475f
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 5.x #12919 +/- ##
=========================================
Coverage 58.96% 58.96%
Complexity 33299 33299
=========================================
Files 2204 2204
Lines 99484 99484
=========================================
Hits 58656 58656
Misses 40828 40828
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code change is correct 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I opened the PR with Gitpod, set the sql_mode to use ANSI, then set a contact manually to "do not contact" and tried to send an email, which did not come through. That's the expected behavior, right @notz?
@MadlenF exactly. We use this patch now for 2 months. |
Description:
Make do not contact query working with ANSI sql standard, which is often used by cloud databases (aiven standard)
Steps to test this PR:
Configure your database sql_mode to use ANSI
And then test sending on conacts that are set to do not contact.