Skip to content

fix: improve prefix detection #3238

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

Merged
merged 1 commit into from
May 9, 2025
Merged

fix: improve prefix detection #3238

merged 1 commit into from
May 9, 2025

Conversation

Seb33300
Copy link
Contributor

@Seb33300 Seb33300 commented May 9, 2025

Fixes #3237

In the previous implementation, I was looking only for prefixed columns.
Unfortunately, this was not working as expected when custom select without alias were manually added.

I have refactored to try to retrieve the table prefix by searching in all selected columns even if they do not have an alias.

Copy link

sonarqubecloud bot commented May 9, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Copy link
Owner

@yajra yajra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice if we can have unit tests for this cases. Will also try to implement when I get the chance.

Good to go as tested by @tkcsdemos

@yajra yajra merged commit 6e87ea9 into yajra:master May 9, 2025
5 of 7 checks passed
@yajra
Copy link
Owner

yajra commented May 9, 2025

@Seb33300 Seb33300 deleted the fix-prefix branch May 9, 2025 15:10
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.

Sorting results in error when prefix of column is not defined
2 participants