diff options
Diffstat (limited to 'oslo_db/sqlalchemy/update_match.py')
-rw-r--r-- | oslo_db/sqlalchemy/update_match.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/oslo_db/sqlalchemy/update_match.py b/oslo_db/sqlalchemy/update_match.py index 577fb81..0bfcfa8 100644 --- a/oslo_db/sqlalchemy/update_match.py +++ b/oslo_db/sqlalchemy/update_match.py @@ -486,9 +486,9 @@ def _update_stmt_from_query(mapper, query, values): ) primary_table = inspect(query.column_descriptions[0]['entity']).local_table where_criteria = query.whereclause - update_stmt = sql.update(primary_table, - where_criteria, - upd_values) + update_stmt = sql.update( + primary_table, where_criteria, + ).values(upd_values) return update_stmt |