[MDEV-31424] White space in a query seems to affect parsing Created: 2023-06-07 Updated: 2023-06-12 Resolved: 2023-06-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Subquery |
| Affects Version/s: | 10.5.19 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Alessandro Vesely | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
mariadb Ver 15.1 Distrib 10.5.19-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper |
||
| Description |
|
It is not "subquery", just "query". Unbelievably, I was entering a query that someone sent me by email. It was split in several lines, which I copied and pasted in a client terminal. It replied with an error. I could spot no errors, and the query was very similar to a previous one which only had a single find_in_set condition. So I started recalling the query by ↑(up arrow) and removing a space. The last attempt succeeded. Here's the last but one and the last:
The difference is a single space before the last `and`. The database is depicted here |
| Comments |
| Comment by Alice Sherepa [ 2023-06-12 ] | |||||||||||||||
|
that is because that was not a whitespace, but a a non-breaking space:
| |||||||||||||||
| Comment by Alessandro Vesely [ 2023-06-12 ] | |||||||||||||||
|
Nearly. There were CRs:
However, I couldn't reproduce the error on a simpler table. |