Skip to content

Commit

Permalink
Update driver_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyangyu committed Oct 19, 2023
1 parent 13505f9 commit a2624c8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3369,10 +3369,8 @@ func TestConnectionAttributes(t *testing.T) {
value1 := "value1"
attr2 := "fo/o"
value2 := "bo/o"
dsn += fmt.Sprintf(
"&connectionAttributes=%s:%s,%s:%s",
attr1, value1, url.QueryEscape(attr2), url.QueryEscape(value2),
)
dsn += "&connectionAttributes=" + url.QueryEscape(fmt.Sprintf("%s:%s,%s:%s", attr1, value1, attr2, value2))


var db *sql.DB
if _, err := ParseDSN(dsn); err != errInvalidDSNUnsafeCollation {
Expand Down

0 comments on commit a2624c8

Please sign in to comment.