[MDEV-26646] SFORMAT Does not allow @variable use Created: 2021-09-20 Updated: 2021-10-12 Resolved: 2021-10-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets, Server |
| Affects Version/s: | 10.7 |
| Fix Version/s: | 10.7.1 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Roel Van de Paar | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
|
| Comments |
| Comment by Sergei Golubchik [ 2021-10-09 ] | |||||||||||
|
please, take a look at the commit
I'm particularly interested in alternative approaches, e.g. pass a flag MY_COLL_SKIP_NUMBERS. Or just always skip numbers everywhere unconditionally. | |||||||||||
| Comment by Alexander Barkov [ 2021-10-12 ] | |||||||||||
|
We cannot always skip numbers unconditionally inside all Item_func_xxx. The following examples won't work:
I think your patch is good. Alternatively, we could try to do the following for Item_func_sformat: Don't call Type_std_attributes::agg_item_set_converter() in fix_length_and_dec().
However, there will be a difference comparing to other functions, e.g. CONCAT(): I'm slightly inclined to your solution for now. | |||||||||||
| Comment by Sergei Golubchik [ 2021-10-12 ] | |||||||||||
|
pushed into a preview branch |