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 2021/04/27 09:47:07 UTC

[GitHub] [airflow] crawlersick edited a comment on issue #10795: Python 'pendulum' cannot be converted to a MySQL type

crawlersick edited a comment on issue #10795:
URL: https://github.com/apache/airflow/issues/10795#issuecomment-827460718


   this is the mysql-connector 's fault.
   we can add the convert of pendulum to it's code just like datetime.
   step1. find the /mysql/connector/conversion.py souce code in the system, maybe under the /usr/lib64/python3.x/site-packages , just depends on your python install.
   step2. modify this python code conversion.py , just copy the code of method **_datetime_to_mysql,** to new a method named as **_pendulum_to_mysql**
   
   i have already make this pull request to mysql connetor, refer to 
   https://github.com/mysql/mysql-connector-python/pull/69
   


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