[MDEV-6944] SQL_MODEs related to parsing are not applied during execution of the actual statement under SET STATEMENT .. FOR Created: 2014-10-25 Updated: 2015-04-07 Resolved: 2015-04-07 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | N/A |
| Fix Version/s: | 10.1.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Oleksandr Byelkin |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
Note: there are quite a few tests for ANSI mode in the patch, but they seem to work the other way round – checking that SQL_MODEs which are set under 'SET STATEMENT sql_mode=<mode>}} are not applied when the whole initial SET STATEMENT sql_mode=... FOR ... is being parsed; so I'm not sure if the behavior described below is intentional, which is why I set it to 'Minor' for now. It does not look logical, though. Example 1 - ANSI_QUOTES
Example 2 - IGNORE_SPACE
It's all the same in Percona server. |
| Comments |
| Comment by Oleksandr Byelkin [ 2014-11-11 ] |
|
It can't work because all statement parsed as one. (doc should be updated) |
| Comment by Oleksandr Byelkin [ 2015-03-11 ] |
|
could be fixed by early assignment after parsing SET STATEMENT part, but 7006 have to be approved first... |
| Comment by Oleksandr Byelkin [ 2015-03-18 ] |
|
Most part of this bug fixed in |
| Comment by Oleksandr Byelkin [ 2015-03-18 ] |
|
revision-id: 7054be616427d9a3c92f321741b3cd120321281f
Actually fix for — |
| Comment by Oleksandr Byelkin [ 2015-04-07 ] |
|
the behavior will be described in documantation |