Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite recursive loop in _visit_bindparam when using sqlalchemy has_table #30

Open
stevosaurus opened this issue Jan 26, 2020 · 1 comment

Comments

@stevosaurus
Copy link

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)

@mcfunley
Copy link
Owner

mcfunley commented Sep 4, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants