[MDEV-24555] sql/event_db_repository.cc does not check for all sql_mode values Created: 2021-01-09 Updated: 2021-03-11 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Events, Upgrades |
| Affects Version/s: | 10.4.14, 10.4, 10.5 |
| Fix Version/s: | 10.4, 10.5 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Andrei Lurie | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
mysql.event table check fails during mysqld start after upgrading 10.2 to 10.4.
I believe the reason for the error is that The version we use is 10.4.13 but I checked the latest 10.6 branch and the issue seems to still be still there. |
| Comments |
| Comment by Elena Stepanova [ 2021-01-09 ] |
|
The check doesn't fail when there are extra elements in the set, only when there are missing ones. That said, the omission in the code should be fixed anyway. Thanks for the report. I'll keep it in "need_feedback" until we figure out what's happened to mysql_upgrade. After that we'll need to change the summary appropriately. |
| Comment by Andrei Lurie [ 2021-01-12 ] |
|
Thank you for your reply, Elena. |
| Comment by Elena Stepanova [ 2021-01-12 ] |
|
Thanks. |
| Comment by Daniel Black [ 2021-03-11 ] |
|
The error in this field is also common in 5.7 -> MariaDB upgrades (https://www.tusacentral.net/joomla/index.php/mysql-blogs/232-who-is-drop-in-replacement-of). Given the set (almost?) always is a superset, is it possible to keep the Event scheduler active on errors in the sql_mode so they keep running for whenever the user gets to noticing that mysql_upgrade is needed? |