Skip to content

Commit a394836

Browse files
committed
Use to_uppercase
1 parent 46101da commit a394836

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

rust/operator-binary/src/catalog/postgresql.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ impl ToCatalogConfig for PostgresqlConnector {
2222
_trino_version: u16,
2323
) -> Result<CatalogConfig, FromTrinoCatalogError> {
2424
let mut config = CatalogConfig::new(catalog_name.to_string(), CONNECTOR_NAME);
25-
// SAFETY: `unique_database_name` must only contains ASCII letters and underscores.
26-
let unique_database_name = format!("POSTGRESQL_{}", catalog_name.replace('-', "_"));
25+
// SAFETY: `unique_database_name` must only contains uppercase ASCII letters and underscores.
26+
let unique_database_name = format!(
27+
"POSTGRESQL_{}",
28+
catalog_name.replace('-', "_").to_uppercase()
29+
);
2730
let jdbc_connection_details = self
2831
.inner
2932
.jdbc_connection_details(&unique_database_name)

0 commit comments

Comments
 (0)