pugsql
pugsql copied to clipboard
Infinite recursive loop in _visit_bindparam when using sqlalchemy has_table
After importing pugsql, calling sqlalchemy's has_table method causes an infinite recursive loop. This may happen when any BindParameter is used but I am not sure.
To reproduce: -Import pugsql -Create an MSSQL pyodbc sqlalchemy engine -Call the dialects has_table method like this:
engine.dialect.has_table(engine, table, schema=schema)
Does this happen if you just call create_engine
with your parameters to connect
(i.e. if you aren't using pugsql)? A naive test case doesn't reproduce it.