Re: [sqlalchemy] Getting a list of parameters from a select object Options (cont'd)

2010-12-27 Thread Michael Bayer
When you have a clause you'd need to descend through the structure in the appropriate way to link bind parameters with associated column elements.An expression like "x = :param" would require looking at the "left" and "right" elements of a _BinaryClause, but bind parameters can occur in othe

Re: [sqlalchemy] Getting a list of parameters from a select object Options (cont'd)

2010-12-27 Thread Will Weaver
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 wrote: > In continuation of the following post > > http://groups.google.com/group/sqlalchemy/browse_thread/thread/16087

[sqlalchemy] Getting a list of parameters from a select object Options (cont'd)

2010-12-21 Thread Will
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 tha

[sqlalchemy] Getting a list of parameters from a select object

2007-11-29 Thread Samuel
Hi, I am trying to get a list of parameters from a Select object. In other words, given the following code: select = table.select(or_(table.c.id == "10", table.c.name == "test")) I am trying to get the following list: ["10", "test"]. I tried "select.compile().parameters", which returns None. An