[MDEV-15320] Allow per statement settting of variables Created: 2018-02-15 Updated: 2020-08-25 Resolved: 2018-02-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Parser |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Trivial |
| Reporter: | Hartmut Holzgraefe | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | need_feedback | ||
| Description |
|
MySQal 8.0 will allow to change optimizer settings on a per-sttatement basis with special new /*+ comment syntax. I'd actually whish for a more general approach that would allow to temporarily set any variable on a per statement basis, or at least sql-mode in addition to optimizer-switch. |
| Comments |
| Comment by Elena Stepanova [ 2018-02-15 ] | ||||||||||||||||||||||||||||||||
|
We have SET STATEMENT since 10.1:
Most variables can be temporarily set this way. | ||||||||||||||||||||||||||||||||
| Comment by Hartmut Holzgraefe [ 2018-02-15 ] | ||||||||||||||||||||||||||||||||
|
Now I remember that I read about it at some point in the past. That's still a separate statement though, so the changed setting would not be visible in SHOW PROCESSLIST and general query and audit logs, so having a specific in-query option for this, eg. in form of a /!SET ../ magic comment, might still make sense. Downgrading priority to "Trivial" (feature request) as this is mostly just a cosmetic/convenience request now ... | ||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2018-02-15 ] | ||||||||||||||||||||||||||||||||
|
It's not a separate statement.
| ||||||||||||||||||||||||||||||||
| Comment by Hartmut Holzgraefe [ 2018-02-15 ] | ||||||||||||||||||||||||||||||||
|
Looks as if I officially need more coffee .... :o |