Skip to content

Commit a2624c8

Browse files
authored
Update driver_test.go
1 parent 13505f9 commit a2624c8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎driver_test.go‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3369,10 +3369,8 @@ func TestConnectionAttributes(t *testing.T){
33693369
value1:="value1"
33703370
attr2:="fo/o"
33713371
value2:="bo/o"
3372-
dsn+=fmt.Sprintf(
3373-
"&connectionAttributes=%s:%s,%s:%s",
3374-
attr1, value1, url.QueryEscape(attr2), url.QueryEscape(value2),
3375-
)
3372+
dsn+="&connectionAttributes="+url.QueryEscape(fmt.Sprintf("%s:%s,%s:%s", attr1, value1, attr2, value2))
3373+
33763374

33773375
vardb*sql.DB
33783376
if_, err:=ParseDSN(dsn); err!=errInvalidDSNUnsafeCollation{

0 commit comments

Comments
(0)