From 05cef0741ade10ca668982355b3f3f0bcf0ff0a8 Mon Sep 17 00:00:00 2001 From: Jason Moiron Date: Wed, 24 Jan 2018 15:44:10 -0500 Subject: [PATCH] add support for postgres lib w/ timeouts See https://github.com/Kount/pq-timeouts/ and https://github.com/lib/pq/pull/498 --- bind.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bind.go b/bind.go index 10f7bdf8..b81e6fc6 100644 --- a/bind.go +++ b/bind.go @@ -21,7 +21,7 @@ const ( // BindType returns the bindtype for a given database given a drivername. func BindType(driverName string) int { switch driverName { - case "postgres", "pgx": + case "postgres", "pgx", "pq-timeouts": return DOLLAR case "mysql": return QUESTION