From a1e12ed2767b192ef5d277633a2582cfd716dff7 Mon Sep 17 00:00:00 2001 From: MauricioGarciaS <47052044+MauricioGarciaS@users.noreply.github.com> Date: Wed, 12 Jul 2023 15:01:06 +0200 Subject: [PATCH] fix(connectors): fixed issue while inserting string with quotation mark (#1410) --- ee/connectors/utils/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee/connectors/utils/worker.py b/ee/connectors/utils/worker.py index 2dafeeb5c..8832594d0 100644 --- a/ee/connectors/utils/worker.py +++ b/ee/connectors/utils/worker.py @@ -340,7 +340,7 @@ def fix_missing_redshift(): all_ids = list() # logging.info(f'[FILL INFO] {pg_res[:5]}') for i in range(len(df)): - user = df.iloc[i].name + user = df.iloc[i].name.replace("'", "''") aux = [str(sess) for sess in df.iloc[i].session_id if sess != 'NN'] all_ids += aux if len(aux) == 0: