-
Notifications
You must be signed in to change notification settings - Fork 64
Database URL validation does not accept underscore (_) #66
Comments
@bartekn |
@dulanov I think we will move first chunk of bridge server code to monorepo next week so let's wait until it happens. |
That's great, I exactly need time to set-up dev env and play around a little bit, furthermore this issue looks quite simple to start from. |
@bartekn do you have some broken database URL examples? [database]
type = "mysql"
url = "root:@/gateway_test?parseTime=true" I reproduced it in Go Playground (example is based on two similar peace of code from bridge/config/config.go, compliance/config/config.go) and it works without problems - https://play.golang.org/p/s-FVPnJalU. |
My bad, I could have explained it better in the issue description. The issue is with username, it doesn't accept usernames with |
Interesting, but it also works - |
works
doesn't work |
Thank you, so the problem is with schema name which contain underscore ( |
@bartekn but it's illegal requirement, because:
And go impl. exactly follows it - https://github.com/golang/go/blob/master/src/net/url/url.go#L8. |
Yes, but it works without |
Now I understand your point. We should add support to not fully specified database URLs, especially for cases than user don't want to specify database schema explicitly, because for example now it's always |
No description provided.
The text was updated successfully, but these errors were encountered: