Skip to content

Use TryFrom<ValueRef> for Value#1819

Merged
gwenn merged 1 commit into
rusqlite:masterfrom
gwenn:utf8error
Mar 14, 2026
Merged

Use TryFrom<ValueRef> for Value#1819
gwenn merged 1 commit into
rusqlite:masterfrom
gwenn:utf8error

Conversation

@gwenn

@gwenn gwenn commented Mar 14, 2026

Copy link
Copy Markdown
Collaborator

Fix #1817

@codecov

codecov Bot commented Mar 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 51.85185% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.88%. Comparing base (93085d8) to head (870d5b6).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/error.rs 0.00% 7 Missing ⚠️
src/types/from_sql.rs 57.14% 3 Missing ⚠️
src/functions.rs 0.00% 1 Missing ⚠️
src/row.rs 0.00% 1 Missing ⚠️
src/vtab/mod.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1819      +/-   ##
==========================================
- Coverage   87.96%   87.88%   -0.08%     
==========================================
  Files          58       58              
  Lines       10648    10657       +9     
==========================================
  Hits         9366     9366              
- Misses       1282     1291       +9     

☔ 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 gwenn merged commit 67f59c3 into rusqlite:master Mar 14, 2026
17 checks passed
@gwenn gwenn deleted the utf8error branch March 14, 2026 10:41
@dimitarvp

dimitarvp commented Mar 14, 2026

Copy link
Copy Markdown

Awesome, thanks for addressing this so quickly.

Any rough ETA on next release? It's not urgent by any means but it's making me use different code paths temporarily and I don't want them to ossify and never be revised, which sadly tends to happen with time.

Comment thread src/types/value_ref.rs
Comment on lines +153 to 155

#[inline]
#[track_caller]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw #[track_caller] is not useful on a function that never panics. Harmless but, FYI.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed

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.

From<ValueRef> for Value panics on invalid UTF-8 text via expect()

2 participants