Skip to content
Snippets Groups Projects
Commit 7c117c3d authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

Quote database names in `CREATE DATABASE` statements

This allows us to create databases with names containing dashes, such as the
ones advertised in the documentation of the `swh db create` command.
parent 255e0719
No related branches found
No related tags found
No related merge requests found
......@@ -240,7 +240,7 @@ def create_database_for_package(
"-d",
make_dsn(**creation_dsn),
"-c",
f"CREATE DATABASE {db_name}",
f'CREATE DATABASE "{db_name}"',
]
)
......
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