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

Zeroes truncation bug fix. #109

Merged
merged 1 commit into from Apr 15, 2019
Merged

Zeroes truncation bug fix. #109

merged 1 commit into from Apr 15, 2019

Conversation

yekimov
Copy link
Contributor

@yekimov yekimov commented Apr 15, 2019

I try to fix bug with zeroes truncation at 512 byte border. I removed check for null-termination. For situations where driver doesn't terminate buffers with nulls, we can implement OdbcType trait with null_bytes_count() = 0.

@Koka
Copy link
Owner

Koka commented Apr 15, 2019

@jpastuszek Could you please take a look at this PR as author of original workaround?

@coveralls
Copy link

Coverage Status

Coverage increased (+2.6%) to 60.989% when pulling 570169d on yekimov:master into d6fcefb on Koka:master.

@jpastuszek
Copy link
Contributor

I think this is a good idea. Implementing custom OdbcType type makes the workaround explicit in the client code which I think is good.

@Koka Koka merged commit f95fff1 into Koka:master Apr 15, 2019
@Koka
Copy link
Owner

Koka commented Apr 15, 2019

Published as 0.12.0

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.

None yet

4 participants