PApostol commented on PR #33328:
URL: https://github.com/apache/airflow/pull/33328#issuecomment-1676444419
Regarding PREPARE statements, would changing
```
cur = conn.cursor()
cur.execute(
f"""
LOAD DATA LOCAL INFILE '{tmp_file}'
INTO TABLE {table}
"""
)
```
into
```
cur = conn.cursor(prepared=True)
cur.execute(
"""
LOAD DATA LOCAL INFILE '%s'
INTO TABLE %s
""",
(tmp_file, table)
)
```
do the trick?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]