On 07/10/2010 16:01, Michael Bayer wrote:
It doesn't, why not?
Session.execute() creates text(), and text() creates a bindparam() object for
:baz which has a value of None by default.
Do it like this if you like:
session.execute(
text("select * from foo where bar=:baz", bindparams=[bindparam('baz',
required=True)])
)
OK.
maybe we'll flip on "required=True" for the auto-params created by text() in
0.7.
yes please, shall I create and issue and patch?
cheers,
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
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.