From a07b87eb8b695206914b6387082883fcce6f9913 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Thu, 8 Mar 2018 08:05:54 -0500 Subject: [PATCH] Skip line test of PG 9.3 --- pgtype/line_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pgtype/line_test.go b/pgtype/line_test.go index 45242ad1..019cbf0c 100644 --- a/pgtype/line_test.go +++ b/pgtype/line_test.go @@ -13,6 +13,16 @@ func TestLineTranscode(t *testing.T) { t.Skip("Skipping due to no line type") } + // line may exist but not be usable on 9.3 :( + var isPG93 bool + err := conn.QueryRow("select version() ~ '9.3'").Scan(&isPG93) + if err != nil { + t.Fatal(err) + } + if isPG93 { + t.Skip("Skipping due to unimplemented line type in PG 9.3") + } + testutil.TestSuccessfulTranscode(t, "line", []interface{}{ &pgtype.Line{ A: 1.23, B: 4.56, C: 7.89,