]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
chore(crdb): test 23.1 in CI
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 26 Sep 2023 16:54:10 +0000 (18:54 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 26 Sep 2023 16:54:10 +0000 (18:54 +0200)
.github/workflows/tests.yml
tests/test_client_cursor.py
tests/test_cursor.py

index e265b52dc22f6aba6cb0e3323cccc6a9bf21d9ad..8950b181edee521687379ac9e853cb0a2c3d4cc2 100644 (file)
@@ -237,7 +237,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 }}
index 512722a82d6649f397f3826f5c539f0e5c8d394f..3d6ec4dbf906a713003f54e8f9aba290a021d647 100644 (file)
@@ -692,7 +692,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
index ae1ec1c74692f6a348fb8d00f75a70e5420be11d..f48714715d89aa9224dbbb1d6ec65bb219125a7b 100644 (file)
@@ -810,7 +810,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