Re: [sqlalchemy] bindparam vs %s

2016-11-10 Thread mike bayer
On 11/10/2016 05:24 AM, T Johnson wrote: When I print a select statement, my bindparams show as %s instead of as named params. What could be the cause of this? myparam BindParameter('myparamname', 'hello', type_=Unicode()) print(table.c.colname == myparam) table.colname = :myparamname

[sqlalchemy] bindparam vs %s

2016-11-10 Thread T Johnson
When I print a select statement, my bindparams show as %s instead of as named params. What could be the cause of this? >>> myparam BindParameter('myparamname', 'hello', type_=Unicode()) >>> print(table.c.colname == myparam) table.colname = :myparamname >>> print(select([table.c.colname]).where