We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3de0a02 commit 050d8f8Copy full SHA for 050d8f8
dsn.go
@@ -414,7 +414,7 @@ func ParseDSN(dsn string) (cfg *Config, err error) {
414
if dsn[j] == '@' {
415
// username[:password]
416
// Find the first ':' in dsn[:j]
417
- for k = range j {
+ for k = 0; k < j; k++ { // We cannot use k = range j here, because we use dsn[:k] below
418
if dsn[k] == ':' {
419
cfg.Passwd = dsn[k+1 : j]
420
break
0 commit comments