for connection.execute(), you are sending text straight to the DBAPI
module; you can use the parameter scheme used by your DBAPI. choices
are: named, qmark, pyformat, numeric, and format (see the PEP-0249
for details). some unit tests illustrating some are in test/engine/
execute.py .
On Apr 3, 2007, at 8:51 AM, Marco Mariani wrote:
>
> I know I can have bound parameters in engine.text():
>
>> t = engine.text("select foo from mytable where lala=:hoho")
>> r = t.execute(hoho=7)
>
>
> ...but I need the same for connection.execute(), since I am using
> temporary tables and they are not accessible via engine.text
>
> Should I resort to manual quoting?
>
>
>
> tnx
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---