Comment 9 for bug 1953063

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

Reviewed: https://review.opendev.org/c/openstack/glance/+/842163
Committed: https://opendev.org/openstack/glance/commit/677c89c23631e9083261a1a18ed438d8966e0de2
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 677c89c23631e9083261a1a18ed438d8966e0de2
Author: Dan Smith <email address hidden>
Date: Thu Dec 2 12:01:17 2021 -0800

    Fix set_property_atomic() boolean type casting

    In set_property_atomic() we pass an integer query filter for the
    deleted field, since most projects use an integer for this column.
    However, in glance the column is a boolean, which trips up postgres
    since the types are different (mysql and sqlite work fine). This
    minor change to use False instead of 0 should fix that for postgres
    users.

    Change-Id: I5149df76943c1c19f3204b904c0e2d3ef846bdf7
    Closes-Bug: #1953063
    (cherry picked from commit 753c74c343ab4ef32879a3dd95c3a956af77f869)
    (cherry picked from commit 316ce9659acdec0bc45f8a33825ae3b076199b24)