[Sqlalchemy-tickets] Issue #4189: server_version_info doesn't return tuple of int to be compred wit
Brought to you by:
zzzeek
From: Nicolas B. <iss...@bi...> - 2018-02-16 17:23:07
|
New issue 4189: server_version_info doesn't return tuple of int to be compred with https://bitbucket.org/zzzeek/sqlalchemy/issues/4189/server_version_info-doesnt-return-tuple-of Nicolas Bur: Traceback (most recent call last): print(db.table_names()) File "/home/nbur/.local/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 2139, in table_names return self.dialect.get_table_names(conn, schema) File "<string>", line 2, in get_table_names File "/home/nbur/.local/lib/python3.5/site-packages/sqlalchemy/engine/reflection.py", line 42, in cache return fn(self, con, *args, **kw) File "/home/nbur/.local/lib/python3.5/site-packages/sqlalchemy/dialects/mysql/base.py", line 1950, in get_table_names if self.server_version_info < (5, 0, 2): TypeError: unorderable types: str() < int() As written in this log server_version_info doesn't return a tuple of three int adding ``` #!python print(self.server_version_info) ``` line 1950 in File "/home/nbur/.local/lib/python3.5/site-packages/sqlalchemy/dialects/mysql/base.py" displays (5, 0, '51a', '24+lenny5') which clearly can't be compared with (5, 0, 2)… I mention there is no problem changing and running my script with python 2.7 SQLAlchemy-1.2.2 |