Skip to content

Add support for MySQL 8 and use of grouping as name for a column #2872

@rafaeldtinoco

Description

@rafaeldtinoco

Describe the bug

Table "aggregate_graph_templates" variable "grouping" is a keyword in recent
MySQL versions.

To Reproduce

Steps to reproduce the behavior: Try to import cacti.sql into a MySQL 8, for example.

Expected behavior

Well, unfortunately it isn't cacti's fault that MySQL project created a function named "grouping" in recent versions. Unfortunately, because of that, cacti.sql will have to change the field name. Nevertheless, looking at cacti's code, I could not find a reference to that field, possibly it is being used through positional reference and not name.

Desktop (please complete the following information):

  • OS: Debian & Ubuntu (We are merging new MySQL 8 version into Ubuntu, and this but came from autopkgtests). Issue has been reported here.
  • I suggested, through Debian, the following simple change.

Additional context

We, the Canonical Server Team, are making sure Cacti is good in Ubuntu Eoan. We need this fix landing in Upstream and Debian in order to reduce Ubuntu delta. Thanks a lot for considering this, or suggesting a better fix for us to consider.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions