From f77fffe0294c1e18eb21df8191eafdac040018ff Mon Sep 17 00:00:00 2001 From: Matt Dragon Date: Tue, 26 Nov 2024 13:59:13 -0500 Subject: [PATCH] Make sure we escape single quotes --- api/tests/src/data_migration/test_copy_oracle_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/tests/src/data_migration/test_copy_oracle_data.py b/api/tests/src/data_migration/test_copy_oracle_data.py index 58bb5890a..1b6f51407 100644 --- a/api/tests/src/data_migration/test_copy_oracle_data.py +++ b/api/tests/src/data_migration/test_copy_oracle_data.py @@ -30,7 +30,7 @@ def convert_value_for_insert(value) -> str: if isinstance(value, int): return str(value) if isinstance(value, str): - return f"'{value}'" # noqa: B907 + return f"'{value.replace("'", "''")}'" # noqa: B907 if isinstance(value, date): return f"'{value.isoformat()}'" # noqa: B907