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: Adjusted column alias handling in Select method to avoid empty alias. #544

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

mk3008
Copy link
Owner

@mk3008 mk3008 commented Oct 14, 2024

Summary

This PR improves the Select method by adjusting how the column alias is handled. Previously, an empty alias string could be passed, which would lead to inconsistent SQL queries. With this change, if the columnAlias is empty, the column name itself is used as the alias, ensuring more predictable behavior.

Changes

  • Modified the Select method to check if columnAlias is empty or null.
  • If columnAlias is empty, the column name is used as the alias instead of an empty string.

Why

This update prevents issues where empty column aliases could cause SQL query inconsistencies.

@mk3008 mk3008 added the bug Something isn't working label Oct 14, 2024
@mk3008 mk3008 self-assigned this Oct 14, 2024
@mk3008 mk3008 merged commit 85475e6 into main Oct 14, 2024
1 check passed
@mk3008 mk3008 deleted the develop branch October 14, 2024 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant