Skip to content

Commit 9af6055

Browse files
committed
fix clickhouse proxy dsn issue where database sent as query string
1 parent e68bc59 commit 9af6055

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

clickhouse_options.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,8 @@ func (o *Options) fromDSN(in string) error {
302302
o.Auth.Username = params.Get(v)
303303
case "password":
304304
o.Auth.Password = params.Get(v)
305+
case "database":
306+
o.Auth.Database = params.Get(v)
305307
case "client_info_product":
306308
chunks := strings.Split(params.Get(v), ",")
307309

go.mod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
module github.com/ClickHouse/clickhouse-go/v2
22

3-
go 1.22.0
4-
toolchain go1.24.1
3+
go 1.23.0
4+
5+
toolchain go1.24.2
56

67
require (
78
github.com/ClickHouse/ch-go v0.65.1

0 commit comments

Comments
 (0)