Does the lack of a response mean that it can't be done or just that no one knows how to do it? Or did I not ask the question good enough?
On Tue, Dec 21, 2010 at 12:02 PM, Will <[email protected]> wrote: > In continuation of the following post > > http://groups.google.com/group/sqlalchemy/browse_thread/thread/160870682c011611/8229a3eb9c10f870?lnk=gst&q=parameters+select#8229a3eb9c10f870 > > Is there a way to get the columns that the bind parameters correspond > to? I was able to get the param values but that's half the battle. > > In [11]: print clause > SELECT count(1) AS count_1 > FROM links > WHERE :param_1 = links.foo_id AND :param_2 = ana.links.bar_id > > In [12]: compiled = clause.compile() > > In [13]: print compiled.params > {u'param_1': 8, u'param_2': 1} > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sqlalchemy?hl=en. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
