[MDEV-23625] Specifying a space before the parenthesis can break some built-in functions Created: 2020-08-28 Updated: 2020-09-02 Resolved: 2020-09-02 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Parser |
| Affects Version/s: | 10.2.33, 10.3.24, 10.4.14, 10.5.5 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Ralf Gebhardt |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
If you specify a space before the parenthesis, then some built-in functions will fail. For example, see TRIM():
And NOW():
However, some built-in functions seem to work just fine in this case. For example, see TRUNCATE():
|
| Comments |
| Comment by Elena Stepanova [ 2020-08-28 ] |
|
This is an old (and unarguably very unfortunate) legacy. |
| Comment by Sergei Golubchik [ 2020-08-29 ] |
|
Also, in KB: https://mariadb.com/kb/en/sql-mode/#ignore_space |