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

Diff for: driver_test.go

+2-4
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
var db *sql.DB
33783376
if _, err := ParseDSN(dsn); err != errInvalidDSNUnsafeCollation {

0 commit comments

Comments
 (0)