cloudflare / sqlalchemy-clickhouse

Apache License 2.0
314 stars 105 forks source link

Datetime not handled #36

Open thda opened 5 years ago

thda commented 5 years ago

Hi,

datetime parameters are not handled.

adding:

        elif isinstance(item, datetime.datetime):
            return item.strftime('\'%Y-%m-%d %H:%M:%S\'')

In escape_item fixes the issue for me.