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)
Reviewed: https:/ /review. opendev. org/c/openstack /glance/ +/842163 /opendev. org/openstack/ glance/ commit/ 677c89c23631e90 83261a1a18ed438 d8966e0de2
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 677c89c23631e90 83261a1a18ed438 d8966e0de2
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: I5149df76943c1c 19f3204b904c0e2 d3ef846bdf7 32879a3dd95c3a9 56af77f869) bc45f8a33825ae3 b076199b24)
Closes-Bug: #1953063
(cherry picked from commit 753c74c343ab4ef
(cherry picked from commit 316ce9659acdec0