diff --git a/bind.go b/bind.go index 8a00a9e..33938bd 100644 --- a/bind.go +++ b/bind.go @@ -22,7 +22,7 @@ const ( ) var defaultBinds = map[int][]string{ - DOLLAR: []string{"postgres", "pgx", "pq-timeouts", "cloudsqlpostgres", "ql", "nrpostgres", "cockroach"}, + DOLLAR: []string{"postgres", "pgx", "pgx/v4", "pgx/v5", "pq-timeouts", "cloudsqlpostgres", "ql", "nrpostgres", "cockroach"}, QUESTION: []string{"mysql", "sqlite3", "nrmysql", "nrsqlite3"}, NAMED: []string{"oci8", "ora", "goracle", "godror"}, AT: []string{"sqlserver"}, diff --git a/bind_test.go b/bind_test.go index dfa590e..cce3543 100644 --- a/bind_test.go +++ b/bind_test.go @@ -7,7 +7,7 @@ import ( func oldBindType(driverName string) int { switch driverName { - case "postgres", "pgx", "pq-timeouts", "cloudsqlpostgres", "ql": + case "postgres", "pgx", "pgx/v4", "pgx/v5", "pq-timeouts", "cloudsqlpostgres", "ql": return DOLLAR case "mysql": return QUESTION