[MDEV-24920] Merge "old" SQL variable to "old_mode" sql variable Created: 2021-02-18 Updated: 2023-03-21 Resolved: 2022-04-20 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Variables |
| Fix Version/s: | 10.9.1 |
| Type: | Task | Priority: | Major |
| Reporter: | Oleksandr Byelkin | Assignee: | Rucha Deodhar |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Preview_10.9, beginner-friendly | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
SQL variable "old" controls boolean server variable old_mode which used in several places. SQL variable "old_mode" controls set server variable old_behavior. Make so that SQL "old" variable will set one or several bits in "old_mode" (old_behavior) for compatibility. Check knowledge base for correspondence description to server behavior (now there told that old_mode replace old but it does not looks like correct) |
| Comments |
| Comment by Rucha Deodhar [ 2021-08-26 ] | ||||||
|
Patch: | ||||||
| Comment by Oleksandr Byelkin [ 2021-10-05 ] | ||||||
|
Please change 2 things I mentions and give it Serg for review, because we change flags | ||||||
| Comment by Oleksandr Byelkin [ 2021-10-06 ] | ||||||
|
7eff1b0b1f6c53f4f75aab5b45e533151d0beae9 looks OK for me (after changing 128->64) | ||||||
| Comment by Sergei Golubchik [ 2022-03-08 ] | ||||||
|
71f2c6b710dad256b7f930c01bc60 is ok to push | ||||||
| Comment by Rucha Deodhar [ 2022-03-08 ] | ||||||
|
pushed to preview branch: https://github.com/MariaDB/server/tree/preview-10.9-MDEV-24920 | ||||||
| Comment by Lena Startseva [ 2022-03-09 ] | ||||||
|
Since the "- Also the option "--old" is set next values for @@OLD_MODE:
that not all are described in https://mariadb.com/kb/en/old-mode/ (e.g. "IGNORE_INDEX_ONLY_FOR_JOIN", "COMPAT_5_1_CHECKSUM"). It would be nice to update the documentation as well. | ||||||
| Comment by Rucha Deodhar [ 2022-03-09 ] | ||||||
|
lstartseva yes, updating KB shortly. About some test still using --old , I didn't remove the option file to demonstrate the deprecation warning. --old currently also sets the corresponding old_mode variables so the rest of the test should work fine. Only new addition is that now it also gives warning. | ||||||
| Comment by Lena Startseva [ 2022-03-28 ] | ||||||
|
Testing done, need to fix | ||||||
| Comment by Rucha Deodhar [ 2022-04-20 ] | ||||||
|
Pushed to 10.9 |