Skip to content

Clear sql_mode settingss ONLY_FULL_GROUP_BY and STRICT_TRANS_TABLES for MySQL < 5.7 #44

@BitPoet

Description

@BitPoet

Short description of the enhancement

The fix for processwire/processwire-issues#28 makes PW automatically remove the ONLY_FULL_GROUP_BY and STRICT_TRANS_TABLES sql_mode settings when a new db connection is initiated. It would make sense to also do this for lower versions (MySQL 5.5, 5.6).

Current vs. suggested behavior

Currently, the "remove" option in $config->dbSqlModes for these properties defines the minimum applicable MySQL version as 5.7.0.

It would IMHO make sense to change the version number there to from 5.7.0 to 5.5.0.

Why would the enhancement be useful to users?

Both settings are already available in MySQL 5.5, and a good number of hosting providers now enable them by default, as e.g. seen in this forum discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions