Skip to content

Commit

Permalink
perf: 修复 clickhouse 校验密码失败问题
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Jan 25, 2024
1 parent 9d1b94e commit 6682a85
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/srvconn/conn_clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package srvconn

import (
"fmt"
"net/url"
"os"
"strconv"

Expand Down Expand Up @@ -106,8 +107,8 @@ func (opt *sqlOption) ClickHouseDataSourceName() string {
opt.Host,
opt.Port,
opt.DBName,
opt.Username,
opt.Password,
url.QueryEscape(opt.Username),
url.QueryEscape(opt.Password),
)
}

Expand Down

0 comments on commit 6682a85

Please sign in to comment.