You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/03/07 10:10:43 UTC
[GitHub] [airflow] nuclearpinguin commented on a change in pull request
#7641: [AIRFLOW-7001] Time zone removed from MySQL TIMSTAMP field inserts
nuclearpinguin commented on a change in pull request #7641: [AIRFLOW-7001] Time zone removed from MySQL TIMSTAMP field inserts
URL: https://github.com/apache/airflow/pull/7641#discussion_r389243706
##########
File path: airflow/utils/sqlalchemy.py
##########
@@ -34,6 +34,11 @@
utc = pendulum.timezone('UTC')
+using_mysql = False
+
+if conf.get('core', 'sql_alchemy_conn').lower().startswith('mysql'):
+ using_mysql = True
Review comment:
```suggestion
using_mysql = conf.get('core', 'sql_alchemy_conn').lower().startswith('mysql')
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services