Skip to content

Issues with new mysql 5.7 defaults #22

@randommonk

Description

@randommonk

The new default sql_mode in 5.7 onwards has 2 modes that cause issues for UTStats: ONLY_FULL_GROUP_BY and STRICT_TRANS_TABLES.

https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html

ONLY_FULL_GROUP_BY causes issues due to a slightly incorrect query in player_search.php:

Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'pgaming_1.pi.country' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

STRICT_TRANS_TABLES causes issues with the graph imports:

Generating ctf graphs:
Field 'title' doesn't have a default value

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions