]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- another adjustment
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 19 Jan 2015 13:49:44 +0000 (08:49 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 19 Jan 2015 13:49:44 +0000 (08:49 -0500)
lib/sqlalchemy/orm/persistence.py

index d76bb5598b61b63da3d6b3ff1054411bf925427c..7f81a5c99abf8664b856e36611406a0b55aad405 100644 (file)
@@ -677,8 +677,9 @@ def _emit_update_statements(base_mapper, uowtransaction,
                         c.context.compiled_parameters[0],
                         value_params)
 
-        if hasvalue or assert_multirow or assert_singlerow and \
-                len(multiparams) == 1:
+        if hasvalue or assert_multirow or (
+                assert_singlerow and
+                len(multiparams)) == 1:
             if rows != len(records):
                 raise orm_exc.StaleDataError(
                     "UPDATE statement on table '%s' expected to "