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: remove " from search to avoid SQL escaping errors #233

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

vjousse
Copy link
Contributor

@vjousse vjousse commented Jan 20, 2025

πŸ”§ Problem

As we use " to properly escape SQL queries, we need to remove it by hand from the original query.

🍰 Solution

Add the missing string.replace.

🏝️ How to test

Unit tests have been updated, and the queries have been tested on all the Agribalyse names.

Copy link

codecov bot commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests βœ…

Project coverage is 85.19%. Comparing base (0c61d18) to head (74ca332).
Report is 147 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #233      +/-   ##
==========================================
+ Coverage   83.24%   85.19%   +1.94%     
==========================================
  Files          39       42       +3     
  Lines        3730     4471     +741     
==========================================
+ Hits         3105     3809     +704     
- Misses        625      662      +37     

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

@cmutel cmutel merged commit a53ef98 into brightway-lca:main Jan 20, 2025
26 checks passed
@cmutel
Copy link
Member

cmutel commented Jan 20, 2025

@vjousse Seems like you have been having a lot of fun lately πŸ§‘β€βš•οΈπŸ”¨

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