Closed vladalexeev closed 2 years ago
As a minimal solution it's enough to add **kwargs to method construct_params of the class APGCompiler_psycopg2 in aiopg/sa/engine.py
class APGCompiler_psycopg2(PGCompiler_psycopg2):
def construct_params(self, params=None, _group_number=None, _check=True, **kwargs):
...
@vladalexeev Thanks for reporting the issue.
Could you please try https://pypi.org/project/aiopg/1.3.4b3/?
@Pliner Yes, version 1.3.4b3 works correctly.
@vladalexeev Thanks for confirming 👍🏻
@AVOstap Could you please also confirm that it works?
@Pliner yes, this version works correctly
@Pliner Hey, would it be possible to tag this to some minor/patch release ? We encountered this and currently patching it by ourself but would be great if it was functional by default. (1.4.x)
Describe the bug
In SQLAlchemy 1.4.38 they added optional parameter 'escape_names' to method 'constructparams' of TypeCompiler. Thus, it fails when executes a query with 'in' condition.
To Reproduce
Simply create a query like
Expected behavior
Such kind of queries were executed successfully with previous versions of SQLAlchemy, but now it fails.
Logs/tracebacks
Python Version
aiopg Version
OS
Windows, Linux
Additional context
No response
Code of Conduct