Fix SqlCompatibleTest with support a custom primaryKey