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 todo panic #309

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix todo panic #309

wants to merge 1 commit into from

Conversation

wyhaya
Copy link

@wyhaya wyhaya commented Sep 1, 2023

This PR adds an Unimplemented to the Error enum to indicate something that is not implemented, in place of todo! in the code.

todo! causes an error in the programme and it is very difficult to catch it, the reason for submitting this PR is that I did encounter it and I couldn't do anything about it, it would just interrupt the execution of the programme.

thread 'tokio-runtime-worker' panicked at 'not yet implemented: not yet implemented for Udt', .../src/tds/codec/type_info.rs:317:26
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I know this is not good practice, but it can serve as a transition period. Until we fix all the todo, then remove it!

Thanks, tiberius

@wyhaya
Copy link
Author

wyhaya commented Dec 2, 2023

It seems that the Tiberius repository is no longer active. Is it possible for this PR to be merged?

@janpio
Copy link
Contributor

janpio commented Dec 2, 2023

Not with failing tests, of course. Get them passing - and we can consider.

@wyhaya
Copy link
Author

wyhaya commented Dec 2, 2023

@janpio I've reviewed the tests, but the test failures are not caused by this PR.

https://github.com/wyhaya/tiberius/actions/runs/7072461970

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