diff --git a/driver/pgdriver/column.go b/driver/pgdriver/column.go index 01d48b3a5..710d707aa 100644 --- a/driver/pgdriver/column.go +++ b/driver/pgdriver/column.go @@ -146,7 +146,7 @@ func readTimeCol(rd *reader, n int) (interface{}, error) { return time.Time{}, err } - tm, err := parseTime(bytesToString(tmp)) + tm, err := ParseTime(bytesToString(tmp)) if err != nil { return time.Time{}, err } @@ -162,7 +162,7 @@ const ( timestamptzFormat3 = "2006-01-02 15:04:05.999999999-07" ) -func parseTime(s string) (time.Time, error) { +func ParseTime(s string) (time.Time, error) { switch l := len(s); { case l < len("15:04:05"): return time.Time{}, fmt.Errorf("pgdriver: can't parse time=%q", s)