diff options
author | Boris Pavlovic <boris@pavlovic.me> | 2013-02-04 16:12:13 +0000 |
---|---|---|
committer | Mark McLoughlin <markmc@redhat.com> | 2013-02-07 15:25:28 -0500 |
commit | 4ce828dbb170390f01f2d931ff7a165aefe87c32 (patch) | |
tree | f7f6e65388f2552469901ea9c448e6ec14d49ad5 /openstack/common/db/sqlalchemy/utils.py | |
parent | 195ab59a3a53f636a43b13dc933ca63f1a62cd1a (diff) | |
download | oslo-4ce828dbb170390f01f2d931ff7a165aefe87c32.tar.gz oslo-4ce828dbb170390f01f2d931ff7a165aefe87c32.tar.xz oslo-4ce828dbb170390f01f2d931ff7a165aefe87c32.zip |
Fix missing wrap_db_error for Session.execute() method
We should add wrap_db_error for Session.execute() method, because
Query.update() method will call Session.execute() and it is not inside
Session.flush(), so exceptions from Query.update() wouldn't be wrapped.
Add test for Session.flush() wrapper
Add test for Session.execute() wrapper
Fixes bug 1107890
Change-Id: I96894e502f9f279999b61a1e66469e34a07a022d
Diffstat (limited to 'openstack/common/db/sqlalchemy/utils.py')
0 files changed, 0 insertions, 0 deletions