Comment 2 for bug 1287087

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/77546
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=e687098cf14e7e83e2c7c4252c895324e6735e24
Submitter: Jenkins
Branch: master

commit e687098cf14e7e83e2c7c4252c895324e6735e24
Author: Wen Cheng Ma <email address hidden>
Date: Mon Mar 3 17:49:15 2014 +0800

    Fix glance db migration failed on 031

    In fact, the first where expression has filtered the duplicated locations,
    and the second filters the locations which have more than 1 rows, so the
    second result set is included in the first.
    In DB2, if the boolean of where expression is true, it will throw error.
    So remove the second where expression to fix glance db migration failed on 031.

    Fixes bug #1287087

    Change-Id: Id485b6d20696e989d10f3759011387137543918a