Skip to content
Snippets Groups Projects
Commit 9916a1ff authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Fix typo

parent f5fec8fd
No related branches found
No related tags found
1 merge request!2272Ensure django database wrappers always have a connection before creating a cursor
This commit is part of merge request !2272. Comments created here will be created in the context of that merge request.
......@@ -54,7 +54,7 @@ def run_pg_query(query, source_db):
db = connections[source_db]
# Make sure a connection is open and available for export databases
if db != "default" and db.connection is None:
if source_db != "default" and db.connection is None:
db.connect()
with db.create_cursor(name=str(uuid.uuid4())) as pg_cursor:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment