Skip to content

Commit b939ec6

Browse files
committed
Replace double quotes with backticks for better SQL compatibility
1 parent f8ed8f1 commit b939ec6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elementary/monitor/data_monitoring/data_monitoring.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ def get_elementary_database_and_schema(self):
7979
relation = self.internal_dbt_runner.run_operation(
8080
"elementary_cli.get_elementary_database_and_schema", quiet=True
8181
)[0]
82-
# Replace double quotes with single quotes for proper SQL compatibility
83-
relation = relation.replace('"', "'") if relation else relation
82+
# Replace double quotes with backticks for proper SQL compatibility
83+
relation = relation.replace('"', "`") if relation else relation
8484
logger.info(f"Elementary's database and schema: '{relation}'")
8585
return relation
8686
except Exception as ex:

0 commit comments

Comments
 (0)