Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenStack
oslo
python-oslo.db
Commits
1234d38b
Commit
1234d38b
authored
Jul 20, 2022
by
Zuul
Committed by
Gerrit Code Review
Jul 20, 2022
Browse files
Merge "Add missing 'connect' wrapper"
parents
a8083814
43142792
Changes
1
Hide whitespace changes
Inline
Side-by-side
oslo_db/sqlalchemy/utils.py
View file @
1234d38b
...
...
@@ -1162,7 +1162,9 @@ def get_non_ndbcluster_tables(connectable, skip_tables=None):
params
[
'database'
]
=
connectable
.
engine
.
url
.
database
query
=
text
(
query_str
)
nonndbcluster
=
connectable
.
execute
(
query
,
**
params
)
# TODO(stephenfin): What about if this is already a Connection?
with
connectable
.
connect
()
as
conn
,
conn
.
begin
():
nonndbcluster
=
connectable
.
execute
(
query
,
**
params
)
return
[
i
[
0
]
for
i
in
nonndbcluster
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment