Skip to content

Evolutions fail silently when using special characters (e.g. ö) #430

@AmazingDreams

Description

@AmazingDreams

Evolutions fail without error when using special characters like ö. It just keeps asking to run the evolution. I have included a reproduction script below.

Now I've tried to change the character set of the play_evolutions table to utf8 but as that doesn't make any difference at all I'm assuming this is due to something in the code somewhere. Furthermore the special character needs to be removed entirely from the script. Commenting out is not enough.

Play version: 2.6.11
Play-slick version: 3.0.2
Mysql-connector-java version: 5.1.44

Reproduction evolution script:

# --- !Ups
CREATE TABLE whatever (
    text    VARCHAR(255)    NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO whatever (text) VALUES ('ö'); # Remove to succeed
INSERT INTO whatever (text) VALUES ('o');

# --- !Downs
DROP TABLE IF EXISTS whatever;

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