-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
look into using inline=true for bindparam() inside of DDL sequences #2742
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
Comments
Andrey Cizov (@andreycizov) wrote: Code to reproduce |
Changes by Andrey Cizov (@andreycizov):
|
Andrey Cizov (@andreycizov) wrote: I have used the wrong Component for this ticket and I can't seem to be able to edit it, so please note that. |
Michael Bayer (@zzzeek) wrote: well you can't use a bound parameter in an Index. The system here should tell the compiler to convert bound parameters to literals, so that can be fixed, but in the meantime just use text() or literal_column() (btw this index still returns an error for me on PG 9.1.4):
error:
|
Changes by Michael Bayer (@zzzeek):
|
Andrey Cizov (@andreycizov) wrote: This works on PG 9.2.3:
That doesn't as well:
|
Michael Bayer (@zzzeek) wrote: two different issues:
9bc9d5c master d8c17e2 0.8
a2cce1b master 70fdd3e 0.8 with these two changes your test case passes. |
Changes by Michael Bayer (@zzzeek):
|
Migrated issue, originally created by Andrey Cizov (@andreycizov)
The bug is reproducible on 0.8.1 and the git master version (!version! == 0.9.0)
I am trying to add an index on an expression for PostgreSQL:
The SQL generated by SQLA is correct:
2013-06-05 09:45:06,668 INFO sqlalchemy.engine.base.Engine CREATE INDEX heuristic ON foos (%(param_1)s / (a + b))
, butparam_1
is never passed to the query executor so the query fails.Traceback:
I've attached to code to reproduce the bug.
Attachments: bugreport.py
The text was updated successfully, but these errors were encountered: