summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMichael Trier <mtrier@gmail.com>2008-12-12 21:59:33 +0000
committerMichael Trier <mtrier@gmail.com>2008-12-12 21:59:33 +0000
commitc712af4d4ccea6f5dc7976d33637fe3e1a7df99f (patch)
tree501035562527a127cefdff5a514c7e8ec068b347 /doc
parentf9b8641269b17a5f29ed58df46286f881d82035f (diff)
downloadsqlalchemy-c712af4d4ccea6f5dc7976d33637fe3e1a7df99f.tar.gz
Corrected output on docs and a missing {stop} that prevented python results from displaying in the docs.
Diffstat (limited to 'doc')
-rw-r--r--doc/build/sqlexpression.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/build/sqlexpression.rst b/doc/build/sqlexpression.rst
index fea1cce00..70aaf6dce 100644
--- a/doc/build/sqlexpression.rst
+++ b/doc/build/sqlexpression.rst
@@ -250,7 +250,7 @@ Above, we see that printing each row produces a simple tuple-like result. We ha
FROM users
[]
- >>> row = result.fetchone()
+ {stop}>>> row = result.fetchone()
>>> print "name:", row['name'], "; fullname:", row['fullname']
name: jack ; fullname: Jack Jones
@@ -260,7 +260,7 @@ Integer indexes work as well:
>>> row = result.fetchone()
>>> print "name:", row[1], "; fullname:", row[2]
- name: wendy ; fullname: Wendy Williams
+ name: jack ; fullname: Jack Jones
But another way, whose usefulness will become apparent later on, is to use the ``Column`` objects directly as keys: