You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/home/ajung/src/fastapi/lib/python3.8/site-packages/asyncpg/connection.py", line 86, in __init__
serverversion.split_server_version_string(ver_string)
File "/home/ajung/src/fastapi/lib/python3.8/site-packages/asyncpg/serverversion.py", line 50, in split_server_version_string
versions = [int(p) for p in parts][:3]
File "/home/ajung/src/fastapi/lib/python3.8/site-packages/asyncpg/serverversion.py", line 50, in <listcomp>
versions = [int(p) for p in parts][:3]
ValueError: invalid literal for int() with base 10: '2-YB-2'
> /home/ajung/src/fastapi/lib/python3.8/site-packages/asyncpg/serverversion.py(51)split_server_version_string()
-> versions = [int(p) for p in parts][:3]
(Pdb) pp parts
['11', 0, '2-YB-2', '4', '1', '0']
The text was updated successfully, but these errors were encountered:
zopyx
changed the title
Unable to parser server version against Yugabyte
Unable to parser server version from Yugabyte
Jun 16, 2021
MagicStack#250MagicStack#261MagicStack#771
Just tried to use this library through Ormar->Databases->AsyncPG against
a Yugabyte cluster and hit issue 771. Looks like this has been a problem
for a while now so going for a complete overhaul of the server version
extraction method. Using a groupdict regex against the version string
allows for much higher flexibility in extracting what we're looking for
and fixes 771 while not breaking any of the existing version patterns.
The text was updated successfully, but these errors were encountered: