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(databases): Fix filter for database permissions. #49

Merged

Conversation

kgopal492
Copy link

@kgopal492 kgopal492 commented Mar 5, 2025

SUMMARY

SQL query is resulting in error "Illegal mix of collations for operation ' IN '" with previous filter.
Error occurs when you're trying to compare or perform operations on strings with different collations that aren't compatible (in this case the int being cast to a string is incompatible). Removed casting & directly concatenated to avoid error.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@codecov-commenter
Copy link

codecov-commenter commented Mar 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (pinterest-release-4.1.1@fdd22ad). Learn more about missing BASE report.

Additional details and impacted files
@@                    Coverage Diff                     @@
##             pinterest-release-4.1.1      #49   +/-   ##
==========================================================
  Coverage                           ?   83.67%           
==========================================================
  Files                              ?      538           
  Lines                              ?    38624           
  Branches                           ?        0           
==========================================================
  Hits                               ?    32318           
  Misses                             ?     6306           
  Partials                           ?        0           
Flag Coverage Δ
hive 48.96% <75.00%> (?)
mysql 76.74% <75.00%> (?)
postgres 76.83% <75.00%> (?)
presto 53.45% <75.00%> (?)
python 83.67% <100.00%> (?)
sqlite 76.30% <75.00%> (?)
unit 60.43% <75.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kgopal492 kgopal492 merged commit fa4bea1 into pinterest:pinterest-release-4.1.1 Mar 6, 2025
18 of 26 checks passed
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.

3 participants