diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index b41d37df..bd92f1f6 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -24,6 +24,7 @@ - Replaced entity with getter (#652) - Resolved TODO in Dockerfile (#680) - Resolved TODO at src/reporter/tests/test_timescale_types.py (#667) +- Resolved TODO at timescale-container/crate-exporter.py (#702) ### Bug fixes diff --git a/timescale-container/crate-exporter.py b/timescale-container/crate-exporter.py index cabe0936..2bba6531 100644 --- a/timescale-container/crate-exporter.py +++ b/timescale-container/crate-exporter.py @@ -69,21 +69,13 @@ class CrateSql: @staticmethod def to_string(x) -> str: - """ - Convert the input into a Crate string. - E.g. input ~~~> 'input' - """ - v = str(x) # TODO consider escaping? - return f"'{v}'" + + return f"'{x}'" @staticmethod def to_quoted_identifier(x) -> str: - """ - Convert the input into a Crate quoted identifier. - E.g. input ~~~> "input" - """ - v = str(x) # TODO consider escaping? - return f'"{v}"' + + return f'"{x}"' class CrateTableIdentifier: