_drop_unique_constraint_in_sqlite() drops all unique constraints rather than given one

Bug #1184526 reported by Viktor Serhieiev
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Viktor Serhieiev

Bug Description

steps to reproduce:

- create table with two unique constraints
- drop the first one

Expected result - table has one unique constraint.
Actual result - table has no unique constraints.

Tags: db
Changed in oslo:
assignee: nobody → Victor Sergeyev (vsergeyev)
affects: oslo → nova
Changed in nova:
importance: Undecided → Medium
milestone: none → havana-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/30852

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/30852
Committed: http://github.com/openstack/nova/commit/251a4b8453a7a0218badd805d6f805a5c6d78a24
Submitter: Jenkins
Branch: master

commit 251a4b8453a7a0218badd805d6f805a5c6d78a24
Author: Victor Sergeyev <email address hidden>
Date: Wed May 29 11:54:10 2013 +0300

    Fix _drop_unique_constraint_in_sqlite() function.

    We got incorrect unique constrains in function
    _drop_unique_constraint_in_sqlite().
    New function `_get_unique_constraints_in_sqlite()` was added to fix it.

    Change-Id: Iebb4c0e6c3e6a069ba5cde2fdb2a2ff1200b826f
    Fixes: bug 1184526

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-2 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.