[MDEV-25140] JSON_TABLE: Success of query execution depends on the outcome of previous queries Created: 2021-03-15 Updated: 2021-03-19 Resolved: 2021-03-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | JSON |
| Affects Version/s: | N/A |
| Fix Version/s: | 10.6.0 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Elena Stepanova | Assignee: | Alexey Botchkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
This is a problem with possibly wide-spread consequences. Here the first query is valid, and the second one works too as probably expected (at least I don't see why it shouldn't):
Now let's make the first query invalid (missing the alias), run it and repeat the 2nd query without any modifications:
So, now the second query fails, and it continues failing upon further executions:
But if we fix the first one, run it successfully, and repeat the 2nd one, it works again:
In MySQL, nothing of the kind happens, the 2nd query consistently succeeds. |