This repository was archived by the owner on Feb 1, 2026. It is now read-only.
Added go get and godoc compatibility and improved error handling in driver#10
Open
silvasur wants to merge 4 commits intoweigj:masterfrom
Open
Added go get and godoc compatibility and improved error handling in driver#10silvasur wants to merge 4 commits intoweigj:masterfrom
go get and godoc compatibility and improved error handling in driver#10silvasur wants to merge 4 commits intoweigj:masterfrom
Conversation
* Moved sources to subdirectory that has a name, that can be imported (i.e. has no hyphen in it) * Deleted build scripts (not needed, go get / go install will compile the package without additional build instructions) * Also moved some documentation from README files to the packages, so they are accessible to godoc now.
When a (*ODBCError)(nil) error (returned by odbc functions) was returned
as an error, it was no longer treated as a nil value, therefore it was
not possible to detect them with the ususal `if err != nil {..}` method.
Since field_len is the size in (wide) characters and SQLGetData expects the size in bytes, in some situations only half of the data was actually read from the database.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
odbc, which does not have hyphens and therefore has an unambiguous import name.github.com/kch42/go-odbc/odbcinstead ofodbc(if you want to pull the changeset, you need to change thekch42toweigj, of course).go getcan automatically download and install the packages.godocis therefore able to display this documentation.