]> 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 17:59:06 +0000 (19:59 +0200)
.github/workflows/tests.yml
tests/test_cursor.py

index 12893e7067fe1725328c9eafb039276b50743f5a..b16530023940f9399dc79ea49f3a1e9f5cf29f97 100644 (file)
@@ -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 }}
index 2e607ec54e63cd3a8b83912280f796c25c3e6a11..c0d57dac1ce48824a572ebee077f3908cec258ca 100644 (file)
@@ -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