On Wed, Sep 28, 2011 at 8:56 AM, Michael Bayer <[email protected]>wrote:
>
> On Sep 28, 2011, at 9:47 AM, Chris Withers wrote:
>
> > On 28/09/2011 14:09, Michael Bayer wrote:
> > I'm doing engine.execute('drop table if exists %s' + table.name) in the
> meantime, which just feels icky...
>
> oh probably it doesn't like table name as a bound parameter.
>
> Don't you mean 'drop table if exists %s' % table.name not "+ table.name"
if table.name is "mytable" wouldn't using "+" generate "drop table if exists
%smytable"?
--
Mike
--
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.