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 generating schema fails due to column name conflicts #418

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

Neuman968
Copy link

@Neuman968 Neuman968 commented Oct 27, 2024

fixes #408

  • Added a function to rename a column if it conflicts with reserved keywords.

  • Updated sql_builder_template to check if column is in a conflict with reserved key words

  • Added unit tests.

Thank you for this awesome project! Let me know if there is anything I can add or change.

…lumn name array and renames to {col}_ if it is a conflicting name. Added unit tests.
Copy link

codecov bot commented Oct 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.47%. Comparing base (e715b13) to head (9f8732c).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #418   +/-   ##
=======================================
  Coverage   90.46%   90.47%           
=======================================
  Files         132      132           
  Lines        7561     7566    +5     
=======================================
+ Hits         6840     6845    +5     
  Misses        558      558           
  Partials      163      163           

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

@Neuman968 Neuman968 changed the title Updated sql_builder_template to check if column is in a conflictes with reserved key words Fix Generating Schema Fails due to Column Name Conflicts Oct 27, 2024
@Neuman968 Neuman968 changed the title Fix Generating Schema Fails due to Column Name Conflicts Fix generating schema fails due to column name conflicts Oct 27, 2024
@go-jet
Copy link
Owner

go-jet commented Oct 28, 2024

Thanks. Looks good. 👍

@go-jet go-jet merged commit 02f19ff into go-jet:master Oct 28, 2024
7 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.

Generating schema Fails
3 participants