go-gorm / go-gorm/sqlserver

Cannot connect to SQL server using a # character in the password

Open
#75 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
66
Forks
52
PR merge metrics
No merged PRs in 30d

Description

Hi,

I cannot find a way to connect using a password with a # in the password.

The sqlstring is something like:
`sqlserver://user:pass#word@theadress:23456?database=GENERIC"`

This string would fail with an error of this type:
`Failed to initialize database, got error parse sqlserver://user:pass: invalid port :pass after host`.

The parsing seems to stop after the # char.

How can I workaround this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.