Skip to content

Unique comparison is case sensitive  #8

Description

@ivanvermeyen

It seems that the where clause in the unique_translation rule is case sensitive.

protected function findTranslation($connection, $table, $column, $locale, $value)
{
return DB::connection($connection)->table($table)->where("{$column}->{$locale}", '=', $value);
}

According to my Google searches, MySQL is supposed to be case insensitive when using a collation that ends in _ci (I'm using utf8mb4_unicode_ci). But that's not what my tests are saying...

Is anyone else having this issue?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions