ashb commented on a change in pull request #21551:
URL: https://github.com/apache/airflow/pull/21551#discussion_r806696184



##########
File path: airflow/providers/postgres/example_dags/example_postgres.py
##########
@@ -70,8 +70,9 @@
             BETWEEN SYMMETRIC DATE '{{ params.begin_date }}' AND DATE '{{ 
params.end_date }}';
             """,
         params={'begin_date': '2020-01-01', 'end_date': '2020-12-31'},

Review comment:
       Oh yeah, Better (if we want to keep it parameterized at all) would be to 
use parameters so that we don't risk SQLI:
   
   ```
               BETWEEN SYMMETRIC DATE :begin_date: AND DATE :end_date:';
               """,
           parameters={'begin_date': '2020-01-01', 'end_date': '2020-12-31'},
   ```
   (untested)




-- 
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]


Reply via email to