commit f834f9adaf9c228ff4ec6a5e24e6d4cf3ca6a992
Author: Michael Johnson <email address hidden>
Date: Mon Mar 6 18:47:03 2023 +0000
Fix NotImplementedError in dbcounter on SQLA 2.x
This patch fixes a NotImplementedError raised in the dbcounter plugin when using SQLAlchemy 2.x. The plugin signature has changed and now requires an "update_url" method as part of the plugin[1].
This patch also updates the do_incr() explicit SQL string to use a TextClause and the new requirement for named bound parameters[2].
Reviewed: https:/ /review. opendev. org/c/openstack /devstack/ +/876601 /opendev. org/openstack/ devstack/ commit/ f834f9adaf9c228 ff4ec6a5e24e6d4 cf3ca6a992
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit f834f9adaf9c228 ff4ec6a5e24e6d4 cf3ca6a992
Author: Michael Johnson <email address hidden>
Date: Mon Mar 6 18:47:03 2023 +0000
Fix NotImplementedError in dbcounter on SQLA 2.x
This patch fixes a NotImplementedError raised in the dbcounter plugin when using SQLAlchemy 2.x. The plugin signature has changed and now requires an "update_url" method as part of the plugin[1].
This patch also updates the do_incr() explicit SQL string to use a TextClause and the new requirement for named bound parameters[2].
Closes-Bug: #2009521
[1] https:/ /docs.sqlalchem y.org/en/ 20/changelog/ migration_ 14.html# changes- to-createengine plugin /docs.sqlalchem y.org/en/ 20/changelog/ migration_ 20.html# execute- method- more-strict- execution- options- are-more- prominent
[2] https:/
Change-Id: Ie5484597057a33 06757cc46b65744 6ad61ac2098