-
-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for MySQL 8 and use of grouping as name for a column #2872
Comments
ERROR 1064 (42000) at line 1666: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'grouping char(2) NOT NULL default '', |
According to: GROUPING (R); added in 8.0.1 (reserved) |
ALRIGHT .. so instead of changing the field name, we could use `` in "grouping" keyword, just as it was used in the beginning of cacti. There is another issue for MySQL 8 as well: ERROR 1231 (42000) at line 6: Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER' NO_AUTO_CREATE_USER is the default moe now and the SQL_MODE does not exist anymore. I'll provide patches fixing those 2 issues and suggest it here. |
I have proposed: To address this issue. Thanks for considering it. |
Just got feedback that I have to address MariaDB versions also. Will re-push with a fix. |
Alright I have addressed MySQL and MariaDB now. Merge Request |
Yup merged and fixed. Next time, please update the CHANGELOG file too. Thanks for sure though!!! |
Cacti support for MySQL 8 and use of grouping table column
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):
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.
The text was updated successfully, but these errors were encountered: