Skip to content

Update error type for ValueRef methods#1629

Merged
gwenn merged 1 commit intorusqlite:masterfrom
stdonnelly:update-valueref-docs
Jan 27, 2025
Merged

Update error type for ValueRef methods#1629
gwenn merged 1 commit intorusqlite:masterfrom
stdonnelly:update-valueref-docs

Conversation

@stdonnelly
Copy link
Contributor

This corrects the doc comments that explain the error variant returned by ValueRef methods.

The current doc comments say that the methods will return Err(Error::InvalidColumnType) if the case of self is not correct. The Err case of the results returned by these methods is actually FromSqlError, and specifically FromSqlError::InvalidType when the case of self is not correct.

I had a quick glance at every line matching //.*Error:: and //.*Err\( and could not find any other comments that seemed incorrect.

@gwenn
Copy link
Collaborator

gwenn commented Jan 27, 2025

You are right.
Thanks.

@codecov
Copy link

codecov bot commented Jan 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.62%. Comparing base (5d0cd87) to head (918cdee).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1629   +/-   ##
=======================================
  Coverage   86.62%   86.62%           
=======================================
  Files          56       56           
  Lines       10912    10912           
=======================================
  Hits         9452     9452           
  Misses       1460     1460           

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

@gwenn gwenn merged commit 7e8b887 into rusqlite:master Jan 27, 2025
16 checks passed
@stdonnelly stdonnelly deleted the update-valueref-docs branch January 27, 2025 19:58
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