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 for issue #26. Column aliases containing spaces cause an error. #27

Merged
merged 5 commits into from
Sep 25, 2023

Conversation

martsberger
Copy link
Owner

Since column aliases in annotations are now restricted to not have whitespace, sql comments, quotes, or semicolons, they are aliased during the SQL query, and returned back after the query returns.

Test data has been updated so that each of the disallowed characters is used.

@codecov-commenter
Copy link

codecov-commenter commented Sep 25, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.14% 🎉

Comparison is base (3cb4603) 99.05% compared to head (5410b7a) 99.20%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
+ Coverage   99.05%   99.20%   +0.14%     
==========================================
  Files           3        4       +1     
  Lines         106      126      +20     
==========================================
+ Hits          105      125      +20     
  Misses          1        1              
Files Changed Coverage Δ
django_pivot/tests/pivot/models.py 100.00% <ø> (ø)
django_pivot/pivot.py 100.00% <100.00%> (ø)

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

@martsberger martsberger merged commit c8413bf into master Sep 25, 2023
24 checks passed
@martsberger martsberger deleted the alias-special-characters branch September 25, 2023 15:52
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.

2 participants