forked from denisenkom/go-mssqldb
-
Notifications
You must be signed in to change notification settings - Fork 67
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: Handle extended chars in SQL instance names #138
Merged
Merged
Conversation
This file contains 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
apoorvdeshmukh
approved these changes
Jul 25, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Fixes #122 |
kodiakhq bot
referenced
this pull request
in cloudquery/cloudquery
Aug 22, 2023
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/microsoft/go-mssqldb](https://github.com/microsoft/go-mssqldb) | require | major | `v0.19.0` -> `v1.5.0` | --- ### ⚠ Dependency Lookup Warnings ⚠ Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>microsoft/go-mssqldb (github.com/microsoft/go-mssqldb)</summary> ### [`v1.5.0`](https://github.com/microsoft/go-mssqldb/releases/tag/v1.5.0) [Compare Source](https://github.com/microsoft/go-mssqldb/compare/v1.4.0...v1.5.0) #### What's Changed - go mod vendor npipe to this repo by [@​shueybubbles](https://github.com/shueybubbles) in [https://github.com/microsoft/go-mssqldb/pull/118](https://github.com/microsoft/go-mssqldb/pull/118) - Enable dependabot for pkg updates by [@​apoorvdeshmukh](https://github.com/apoorvdeshmukh) in [https://github.com/microsoft/go-mssqldb/pull/119](https://github.com/microsoft/go-mssqldb/pull/119) - fix: mips and mipsel builds by [@​powersj](https://github.com/powersj) in [https://github.com/microsoft/go-mssqldb/pull/124](https://github.com/microsoft/go-mssqldb/pull/124) - Allow for local dns resolution with a custom dialer by [@​stephaniehingtgen](https://github.com/stephaniehingtgen) in [https://github.com/microsoft/go-mssqldb/pull/121](https://github.com/microsoft/go-mssqldb/pull/121) - Fixes MarshalText and adds UnmarshalJSON interface for UniqueIdentifier by [@​Musab-Nazir](https://github.com/Musab-Nazir) in [https://github.com/microsoft/go-mssqldb/pull/126](https://github.com/microsoft/go-mssqldb/pull/126) - Update README.md by [@​dlevy-msft](https://github.com/dlevy-msft) in [https://github.com/microsoft/go-mssqldb/pull/132](https://github.com/microsoft/go-mssqldb/pull/132) - Fix: Handle extended chars in SQL instance names by [@​shueybubbles](https://github.com/shueybubbles) in [https://github.com/microsoft/go-mssqldb/pull/138](https://github.com/microsoft/go-mssqldb/pull/138) #### New Contributors - [@​powersj](https://github.com/powersj) made their first contribution in [https://github.com/microsoft/go-mssqldb/pull/124](https://github.com/microsoft/go-mssqldb/pull/124) - [@​stephaniehingtgen](https://github.com/stephaniehingtgen) made their first contribution in [https://github.com/microsoft/go-mssqldb/pull/121](https://github.com/microsoft/go-mssqldb/pull/121) - [@​Musab-Nazir](https://github.com/Musab-Nazir) made their first contribution in [https://github.com/microsoft/go-mssqldb/pull/126](https://github.com/microsoft/go-mssqldb/pull/126) - [@​dlevy-msft](https://github.com/dlevy-msft) made their first contribution in [https://github.com/microsoft/go-mssqldb/pull/132](https://github.com/microsoft/go-mssqldb/pull/132) **Full Changelog**: microsoft/go-mssqldb@v1.1.0...v1.5.0 ### [`v1.4.0`](https://github.com/microsoft/go-mssqldb/compare/v1.3.0...v1.4.0) [Compare Source](https://github.com/microsoft/go-mssqldb/compare/v1.3.0...v1.4.0) ### [`v1.3.0`](https://github.com/microsoft/go-mssqldb/compare/v1.2.0...v1.3.0) [Compare Source](https://github.com/microsoft/go-mssqldb/compare/v1.2.0...v1.3.0) ### [`v1.2.0`](https://github.com/microsoft/go-mssqldb/compare/v1.1.0...v1.2.0) [Compare Source](https://github.com/microsoft/go-mssqldb/compare/v1.1.0...v1.2.0) ### [`v1.1.0`](https://github.com/microsoft/go-mssqldb/releases/tag/v1.1.0) [Compare Source](https://github.com/microsoft/go-mssqldb/compare/v1.0.0...v1.1.0) ### Version 1.1.0 - Release date: May 30, 2023 #### What's new in 1.1.0 - Supports finding the DAC port using the browser service ([#​110](https://github.com/microsoft/go-mssqldb/issues/110)) - Updated go package dependencies ([#​112](https://github.com/microsoft/go-mssqldb/issues/112)) ### [`v1.0.0`](https://github.com/microsoft/go-mssqldb/compare/v0.21.0...v1.0.0) [Compare Source](https://github.com/microsoft/go-mssqldb/compare/v0.21.0...v1.0.0) ### [`v0.21.0`](https://github.com/microsoft/go-mssqldb/compare/v0.20.0...v0.21.0) [Compare Source](https://github.com/microsoft/go-mssqldb/compare/v0.20.0...v0.21.0) ### [`v0.20.0`](https://github.com/microsoft/go-mssqldb/compare/v0.19.0...v0.20.0) [Compare Source](https://github.com/microsoft/go-mssqldb/compare/v0.19.0...v0.20.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi41NC4yIiwidXBkYXRlZEluVmVyIjoiMzYuNTQuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
I couldn't find a standard package for converting the style of ASCII encoding that SQL uses into a UTF8 Go string, nor could I find something to convert from UTF8 to that ASCII byte array.
strconv.QuoteToASCII
is the only common conversion function I could find.I was hoping to change the browser message we use to
4
which takes the instance name as parameter, but without the conversion to ASCII byte array I can use it.