[sqlalchemy] Generating Raw SQL statements with parameters included

2011-01-11 Thread Harkirat
Hi All, DELETE FROM appname WHERE appname.appid = ? -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to

[sqlalchemy] Generating Raw SQL statements with parameters included

2011-01-11 Thread Harkirat
Hi All, DELETE FROM appname WHERE appname.appid = ? -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to

[sqlalchemy] Generating Raw SQL statements with parameters included

2011-01-11 Thread Harkirat
Hi All, When I run this delete_stmt = appname.delete(appname.c.appid==1) print delete_stmt I get output DELETE FROM appname WHERE appname.appid = ? Is there any way I can print out raw sql statments with the parameters included e.g. DELETE FROM appname WHERE appname.appid = 1 Thanks!

Re: [sqlalchemy] Generating Raw SQL statements with parameters included

2011-01-11 Thread Michael Bayer
This question comes up from time to time and I'm generally extremely uncomfortable documenting it, as SQLAlchemy carefully protects its reputation as being 100% bind-parameter driven and in no way wants to encourage the rendering of data directly into SQL strings.This is the one real area