From 604e62397ca565bcbd19a578b51d9faa85520055 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Tue, 26 Sep 2023 18:54:10 +0200 Subject: [PATCH] chore(crdb): test 23.1 in CI --- .github/workflows/tests.yml | 2 +- tests/test_cursor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 12893e706..b16530023 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -244,7 +244,7 @@ jobs: fail-fast: false matrix: include: - - {impl: c, crdb: "latest-v22.1", python: "3.10", libpq: newest} + - {impl: c, crdb: "latest-v23.1", python: "3.10", libpq: newest} - {impl: python, crdb: "latest-v22.2", python: "3.11"} env: PSYCOPG_IMPL: ${{ matrix.impl }} diff --git a/tests/test_cursor.py b/tests/test_cursor.py index 2e607ec54..c0d57dac1 100644 --- a/tests/test_cursor.py +++ b/tests/test_cursor.py @@ -871,7 +871,7 @@ class TestColumn: assert c.name == "now" assert c.type_code == builtins["date"].oid assert c.display_size is None - if is_crdb(conn): + if is_crdb(conn) and conn.info.server_version < 230000: assert c.internal_size == 16 else: assert c.internal_size == 4 -- 2.47.3