diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-12-09 18:27:01 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-12-09 18:27:01 +0000 |
commit | 7758edfd7427a0ad429e23bc57878422840d2d6d (patch) | |
tree | 88b7cf3814987d6b672abea3018e2a8fe91d80c3 | |
parent | 120f13a500118dcbb453731f2b8e7b190b010040 (diff) | |
download | sqlalchemy-7758edfd7427a0ad429e23bc57878422840d2d6d.tar.gz |
fix...
-rw-r--r-- | doc/build/content/ormtutorial.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/build/content/ormtutorial.txt b/doc/build/content/ormtutorial.txt index 2dd59f355..fbbd3c552 100644 --- a/doc/build/content/ormtutorial.txt +++ b/doc/build/content/ormtutorial.txt @@ -1083,12 +1083,12 @@ We can now look up all blog posts with the keyword 'firstpost'. We'll use a sp {python} {sql}>>> session.query(BlogPost).filter(BlogPost.keywords.any(keyword='firstpost')).all() - INSERT INTO posts (user_id, headline, body) VALUES (?, ?, ?) - [2, "Wendy's Blog Post", 'This is a test'] INSERT INTO keywords (keyword) VALUES (?) ['wendy'] INSERT INTO keywords (keyword) VALUES (?) ['firstpost'] + INSERT INTO posts (user_id, headline, body) VALUES (?, ?, ?) + [2, "Wendy's Blog Post", 'This is a test'] INSERT INTO post_keywords (post_id, keyword_id) VALUES (?, ?) [[1, 1], [1, 2]] SELECT posts.id AS posts_id, posts.user_id AS posts_user_id, posts.headline AS posts_headline, posts.body AS posts_body |