[MDEV-31160] multiple use of "SET STATEMENT sql_select_limit=xx FOR" set it at session level. Created: 2023-05-01 Updated: 2023-09-25 Resolved: 2023-09-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 10.11.1, 10.6.12 |
| Fix Version/s: | 10.4.32 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Diego Dupin | Assignee: | Oleksandr Byelkin |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
When using multi-statement capability, using multiple "SET STATEMENT sql_select_limit=xx FOR" in one query will set first "sql_select_limit" at session level, not only for the current query. example executing command : will return correctly return 2, 2, 3 and 3 rows, problem is that session sql_select_limit is then incorrectly set to value 2. |
| Comments |
| Comment by Bradley Grainger [ 2023-05-01 ] | |||||||||
|
Client-side discovery of this issue (with more background information): https://github.com/mysql-net/MySqlConnector/pull/1312#issuecomment-1528802391 | |||||||||
| Comment by Oleksandr Byelkin [ 2023-09-25 ] | |||||||||
|
diego dupin is following a multistatement test:
| |||||||||
| Comment by Oleksandr Byelkin [ 2023-09-25 ] | |||||||||
|
OK it was fixed in |