summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/sqlsoup.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-01-08 11:54:17 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2012-01-08 11:54:17 -0500
commit876305170fe6bd27e0c67cfa1843b7430e293ef8 (patch)
treee018095a3055439e7d1d4b83806bdcf8412efeb3 /lib/sqlalchemy/ext/sqlsoup.py
parentfd136760391712fc277d2cca73f6400f630d9e58 (diff)
downloadsqlalchemy-876305170fe6bd27e0c67cfa1843b7430e293ef8.tar.gz
fix small update doc issue [ticket:2158]
Diffstat (limited to 'lib/sqlalchemy/ext/sqlsoup.py')
-rw-r--r--lib/sqlalchemy/ext/sqlsoup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ext/sqlsoup.py b/lib/sqlalchemy/ext/sqlsoup.py
index 302b511a1..4dd9e9e4d 100644
--- a/lib/sqlalchemy/ext/sqlsoup.py
+++ b/lib/sqlalchemy/ext/sqlsoup.py
@@ -159,7 +159,7 @@ construction rules apply here as to the select methods::
You can similarly update multiple rows at once. This will change the
book_id to 1 in all loans whose book_id is 2::
- >>> db.loans.update(db.loans.book_id==2, book_id=1)
+ >>> db.loans.filter_by(db.loans.book_id==2).update({'book_id':1})
>>> db.loans.filter_by(book_id=1).all()
[MappedLoans(book_id=1,user_name=u'Joe Student',
loan_date=datetime.datetime(2006, 7, 12, 0, 0))]