fix(connectors): fixed issue while inserting string with quotation mark (#1410)

This commit is contained in:
MauricioGarciaS 2023-07-12 15:01:06 +02:00 committed by GitHub
parent c9b4644350
commit a1e12ed276
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: