Skip to content

Commit 0c63994

Browse files
committed
add unit test
1 parent 9af6055 commit 0c63994

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

clickhouse_options_test.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,21 @@ func TestParseDSN(t *testing.T) {
482482
},
483483
"",
484484
},
485+
{
486+
"clickhouse proxy with database as query string",
487+
"tcp://127.0.0.1/?database=bla",
488+
&Options{
489+
Protocol: Native,
490+
TLS: nil,
491+
Addr: []string{"127.0.0.1"},
492+
Settings: Settings{},
493+
Auth: Auth{
494+
Database: `bla`,
495+
},
496+
scheme: "tcp",
497+
},
498+
"",
499+
},
485500
}
486501

487502
for _, testCase := range testCases {

0 commit comments

Comments
 (0)