Skip to content

Commit

Permalink
Add comment to _get_column_size()
Browse files Browse the repository at this point in the history
  • Loading branch information
gordthompson authored and mkleehammer committed Mar 27, 2022
1 parent 9d84ef1 commit 6bae8f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests3/pgtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6bae8f0

Please sign in to comment.