Merge "Format sql in db.sqlalchemy.session docstring"

This commit is contained in:
Jenkins 2014-02-07 01:16:41 +00:00 committed by Gerrit Code Review
commit fa785cea8f
1 changed files with 3 additions and 1 deletions

View File

@ -124,7 +124,9 @@ Recommended ways to use sessions within this framework:
filter_by(id=subq.as_scalar()).
update({'bar': newbar}))
For reference, this emits approximately the following SQL statement::
For reference, this emits approximately the following SQL statement:
.. code:: sql
UPDATE bar SET bar = ${newbar}
WHERE id=(SELECT bar_id FROM foo WHERE id = ${foo_id} LIMIT 1);