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

add type safety for environment attribute values #26

Closed
wants to merge 2 commits into from
Closed

add type safety for environment attribute values #26

wants to merge 2 commits into from

Conversation

mversic
Copy link
Contributor

@mversic mversic commented Jul 18, 2020

Inspired by the #25 PR, this PR increases fixes unknown return values for and increases type safety of attribute values

  • it is no longer possible to use just any value for ValuePtr argument in SQLSetEnvAttr and SQLGetEnvAttr, rather only values that can be converted to/from EnvAttributeValue newtype can be used. Type safety is increased.

  • SQLGetEnvAttr can no longer fail silently if driver sets unknown value for ValuePtr as discussed in Unsafe enum usage #12

@pacman82
Copy link
Owner

Close this as new version of odbc-sys abondon enums entirely in favor of newtype integers, if they are used as output arguments.

@pacman82 pacman82 closed this Aug 22, 2020
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