From 6bae8f0c3c9bae8daef049a09957cdbc4df0aeb4 Mon Sep 17 00:00:00 2001 From: Gord Thompson Date: Wed, 12 Jan 2022 08:12:03 -0700 Subject: [PATCH] Add comment to _get_column_size() --- tests3/pgtests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests3/pgtests.py b/tests3/pgtests.py index be2f69ab..9943bc2b 100755 --- a/tests3/pgtests.py +++ b/tests3/pgtests.py @@ -566,6 +566,8 @@ def test_columns(self): ) def _get_column_size(row): + # the driver changed the name of the returned columns in version 13.02. + # see https://odbc.postgresql.org/docs/release.html, release 13.02.0000, change 6. return row.column_size if driver_version >= (13, 2, 0) else row.precision # When using aiohttp, `await cursor.primaryKeys('t1')` was raising the error