Conversation
update logic to match column name
Update metrics_56.sql
shinguz
left a comment
There was a problem hiding this comment.
This change is too simple IMHO. It is made for MariaDB 10.5 and it will break MariaDB 10.3 and MariaDB 10.4 which are still supported until June 2024. MariaDB broke interfaces once again... :-(
MariaDB 10.5 has the 5.7 P_S anyway. So we should change this.
SQL> select plugin_name, PLUGIN_AUTH_VERSION from information_schema.plugins where plugin_name = 'PERFORMANCE_SCHEMA';
+--------------------+---------------------+
| plugin_name | PLUGIN_AUTH_VERSION |
+--------------------+---------------------+
| PERFORMANCE_SCHEMA | 5.7.31 |
+--------------------+---------------------+
|
Thank you. This fixed the error i received trying to install. Altho i just changed the sql select according to your update. Cmd: Error: sql version: |
varchar innodb information_schema columns that where effectively boolean got replaced by a int in MDEV-19940 in MariaDB-10.5.0. We use a MariaDB-10.2+ feature EXECUTE IMMEDIATE to form the VIEW expression correctly based on the version. Using EXECUTE IMMEDIATE we've effectively broken <=10.1 compatiblity which is now out of support from MariaDB upstream. closes FromDual#1
DO NOT USE - syntax is not understood MDEV-24795 varchar innodb information_schema columns that where effectively boolean got replaced by a int in MDEV-19940 in MariaDB-10.5.0. Using EXECUTE IMMEDIATE we've effectively broken <=10.1 compatiblity which is now out of support from MariaDB upstream. closes FromDual#1
MariaDB [mysql]> desc information_schema.INNODB_METRICS;
+-----------------+-------------------------------------------------------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------------+-------------------------------------------------------------------+------+-----+---------+-------+
| NAME | varchar(193) | NO | | | |
| SUBSYSTEM | varchar(193) | NO | | | |
| COUNT | bigint(21) | NO | | 0 | |
| MAX_COUNT | bigint(21) | YES | | NULL | |
| MIN_COUNT | bigint(21) | YES | | NULL | |
| AVG_COUNT | float | YES | | NULL | |
| COUNT_RESET | bigint(21) | NO | | 0 | |
| MAX_COUNT_RESET | bigint(21) | YES | | NULL | |
| MIN_COUNT_RESET | bigint(21) | YES | | NULL | |
| AVG_COUNT_RESET | float | YES | | NULL | |
| TIME_ENABLED | datetime | YES | | NULL | |
| TIME_DISABLED | datetime | YES | | NULL | |
| TIME_ELAPSED | bigint(21) | YES | | NULL | |
| TIME_RESET | datetime | YES | | NULL | |
| ENABLED | int(1) | NO | | 0 | |
| TYPE | enum('value','status_counter','set_owner','set_member','counter') | NO | | NULL | |
| COMMENT | varchar(193) | NO | | | |
+-----------------+-------------------------------------------------------------------+------+-----+---------+-------+
How about ? |
|
@leeee-me Thank you. This worked for me to resolve installation in MariaDB when I hit the error message |
|
bump for this Enter password: Server version: 10.5.15-MariaDB-0+deb11u1-log Debian 11 MariaDB [(none)]> select plugin_name, PLUGIN_AUTH_VERSION from information_schema.plugins where plugin_name = 'PERFORMANCE_SCHEMA'; |
|
I've got the same error. Enter password: MariaDB [none]> select plugin_name, PLUGIN_AUTH_VERSION from information_schema.plugins where plugin_name = 'PERFORMANCE_SCHEMA'; |
quick fix for column naming error when creating views