[MDEV-6996] SET STATEMENT default_week_format = .. has no effect Created: 2014-11-01 Updated: 2015-02-02 Resolved: 2014-12-02 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Admin statements |
| Affects Version/s: | N/A |
| Fix Version/s: | 10.1.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
All the same in Percona server. |
| Comments |
| Comment by Oleksandr Byelkin [ 2014-11-05 ] | ||||||||
|
The problem is that week format put as an constant argument during parsing:
| ||||||||
| Comment by Oleksandr Byelkin [ 2014-11-05 ] | ||||||||
|
The variable prohibited as a workaround. | ||||||||
| Comment by Oleksandr Byelkin [ 2014-11-11 ] | ||||||||
|
Parameters set during parsing so changing variables has no effect. | ||||||||
| Comment by Sergei Golubchik [ 2014-11-29 ] | ||||||||
|
This is a bug, a variable should not be set during parsing.
| ||||||||
| Comment by Sergei Golubchik [ 2014-11-29 ] | ||||||||
|
An easy fix would be to generate Item_func_get_system_var for a second argument. | ||||||||
| Comment by Oleksandr Byelkin [ 2014-12-01 ] | ||||||||
|
I did a bit different but fix is: |