Skip to content

Fix for vtab::parameter parsing#1712

Merged
gwenn merged 1 commit intorusqlite:masterfrom
kfdm:vtab-parameter-fix
Jun 18, 2025
Merged

Fix for vtab::parameter parsing#1712
gwenn merged 1 commit intorusqlite:masterfrom
kfdm:vtab-parameter-fix

Conversation

@kfdm
Copy link
Contributor

@kfdm kfdm commented Jun 17, 2025

vtab::parameter only needs to look for the first = to know where to split between the key and value as there may be values that also contain an '=' symbol.

This should fix #1711

I have only written some rust as a hobby, so please let me know if you would prefer it written a different way. I tried to copy the existing formats look.

@kfdm
Copy link
Contributor Author

kfdm commented Jun 17, 2025

I guess I neglected to run cargo fmt
Would you like me to do that and resubmit ?

@codecov
Copy link

codecov bot commented Jun 17, 2025

Codecov Report

Attention: Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.

Project coverage is 87.86%. Comparing base (5c33953) to head (de78f7e).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/vtab/mod.rs 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1712      +/-   ##
==========================================
+ Coverage   87.84%   87.86%   +0.01%     
==========================================
  Files          58       58              
  Lines       11379    11380       +1     
==========================================
+ Hits         9996     9999       +3     
+ Misses       1383     1381       -2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gwenn
Copy link
Collaborator

gwenn commented Jun 17, 2025

I guess I neglected to run cargo fmt
Would you like me to do that and resubmit ?

Please do.

vtab::parameter only needs to look for the first = to know where to split
between the key and value as there may be values that also contain an '='
symbol.
@kfdm kfdm force-pushed the vtab-parameter-fix branch from 72a3d21 to de78f7e Compare June 17, 2025 22:38
@kfdm
Copy link
Contributor Author

kfdm commented Jun 17, 2025

Ok ran cargo fmt. I also changed one of the test cases so it would be a bit shorter and fit on one line for aesthetic reasons. Hopefully should be in good shape now.

@gwenn gwenn merged commit 8a19998 into rusqlite:master Jun 18, 2025
16 checks passed
@gwenn
Copy link
Collaborator

gwenn commented Jun 18, 2025

Thanks

@gwenn
Copy link
Collaborator

gwenn commented Jul 6, 2025

rusqlite version 0.37.0 released

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.

vtab::parameter fails with extra "=" sign

2 participants