Altinity / clickhouse-mysql-data-reader

utility to read mysql data
MIT License
369 stars 94 forks source link

fix: is_field_primary_key #206

Open igor-kremin opened 5 months ago

igor-kremin commented 5 months ago

I also changed the function "is_field_primary_key" def is_field_primary_key(self, field): """ Check whether key field description value can be interpreted as True :param field: :return: """

return bool(field)

    return field == 'PRI'

as it marks fileds as primary_key but some of them is not a primary key.