Fix a sqlalchemy 2.x compatibility issue
A recent patch[1] introduced an incompatibility with sqlalchemy 2.x. Unfortunately the upper-constraint of oslo.db < 13.0.0 blocks us from properly testing with sqlalchemy 2.x, so this issue was not caught. [1] https://review.opendev.org/c/openstack/designate/+/880514 Change-Id: Ibc0569235997ea1feb2341adc1e942ecb3fc6dcb
This commit is contained in:
@@ -429,7 +429,7 @@ class SQLAlchemy(object, metaclass=abc.ABCMeta):
|
||||
tables.records.c.recordset_id == tables.recordsets.c.id
|
||||
)
|
||||
|
||||
query = select(RECORDSET_QUERY_TABLES).select_from(rjoin)
|
||||
query = select(*RECORDSET_QUERY_TABLES).select_from(rjoin)
|
||||
|
||||
query = query.where(
|
||||
tables.recordsets.c.id.in_(formatted_ids)
|
||||
|
||||
Reference in New Issue
Block a user