You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assuming this is about metadata per bind, this would be fixed by #1087. Given the age, I'm going to close this, please reopen with a reproducible example if it's still an issue after that PR.
When using the compiles decorator as in this example:
http://docs.sqlalchemy.org/en/rel_0_8/core/compiler.html#compiling-sub-elements-of-a-custom-expression-construct
Queries constructed in this way do not seem to obey the bind_key in the info dictionary on the table.
In this code, I have added some debugging:
That info dictionary has the following value:
Which is the correct bind key. However, it is still attempting to query the default database specified in SQLALCHEMY_DATABASE_URI.
When I do a simple select('*', from_obj=[MY_TABLE]) this works as expected. It seems to be lost on the compiled stuff.
Any thoughts?
The text was updated successfully, but these errors were encountered: