Testing cc_type column before using it