From 17f8e35c8228eafd1638d6d9ca62b2ea9521044a Mon Sep 17 00:00:00 2001 From: Siting Ren Date: Tue, 7 May 2024 13:29:37 +0800 Subject: [PATCH] Upgrade CI server version to 24.2 (#176) --- .github/workflows/ci.yaml | 4 ++-- README.md | 4 ++-- driver_test.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 37f9ee0..3816a70 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: ['1.21', '1.20', '1.19', '1.18', '1.17'] + go-version: ['1.22', '1.21', '1.20', '1.19', '1.18'] steps: - name: Check out repository @@ -34,7 +34,7 @@ jobs: run: | docker run -d -p 5433:5433 -p 5444:5444 \ --name vertica_docker --network my-network \ - vertica/vertica-ce:24.1.0-0 + opentext/vertica-ce:24.2.0-1 echo "Vertica startup ..." until docker exec vertica_docker test -f /data/vertica/VMart/agent_start.out; do \ echo "..."; \ diff --git a/README.md b/README.md index a5064bb..f3ee8da 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ vertica-sql-go is a native Go adapter for the Vertica (http://www.vertica.com) d Please check out [release notes](https://github.com/vertica/vertica-sql-go/releases) to learn about the latest improvements. -vertica-sql-go has been tested with Vertica 24.1.0 and Go 1.17/1.18/1.19/1.20/1.21. +vertica-sql-go has been tested with Vertica 24.2.0 and Go 1.18/1.19/1.20/1.21/1.22. ## Installation @@ -388,7 +388,7 @@ func main() { } // Query a standard metric table in Vertica. - rows, err := connDB.QueryContext(ctx, "SELECT * FROM v_monitor.cpu_usage LIMIT 5") + rows, err := connDB.QueryContext(ctx, "SELECT node_name, start_time, end_time, average_cpu_usage_percent FROM v_monitor.cpu_usage LIMIT 5") if err != nil { testLogger.Fatal(err.Error()) diff --git a/driver_test.go b/driver_test.go index d74d493..4c77981 100644 --- a/driver_test.go +++ b/driver_test.go @@ -229,7 +229,7 @@ func TestBasicQuery(t *testing.T) { connDB := openConnection(t) defer closeConnection(t, connDB) - rows, err := connDB.QueryContext(ctx, "SELECT * FROM v_monitor.cpu_usage LIMIT 5") + rows, err := connDB.QueryContext(ctx, "SELECT node_name, start_time, end_time, average_cpu_usage_percent FROM v_monitor.cpu_usage LIMIT 5") assertNoErr(t, err) defer rows.Close()