pugsql icon indicating copy to clipboard operation
pugsql copied to clipboard

Infinite recursive loop in _visit_bindparam when using sqlalchemy has_table

Open stevosaurus opened this issue 5 years ago • 1 comments

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)

stevosaurus avatar Jan 26 '20 22:01 stevosaurus

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.

mcfunley avatar Sep 04 '20 21:09 mcfunley