[MDEV-30166] [ERROR] unknown variable 'sql_select_limit' Created: 2022-03-07 Updated: 2023-05-17 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Yakov Kushnirsky | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Description |
|
The variable sql_select_limit cannot be set as Global via config file. MariaDB [(none)]> set global sql_select_limit=100; but the customer feels that the behavior is an omission, since it contradicts with Doc |
| Comments |
| Comment by Elena Stepanova [ 2022-03-07 ] |
|
How does it contradict the doc? MySQL entry is a feature request. |
| Comment by Yakov Kushnirsky [ 2022-03-07 ] |
|
Good point, thanks! Indeed I was confused by absence the same comments in KB. Will change to NF. |
| Comment by Ralf Gebhardt [ 2023-05-02 ] |
|
YK, I do not think that it makes sense to limit the number of rows returned for a query on a server level. Users would not expect that the result they get is not complete, if not explicitly set by them. I am even questioning if it is a good idea that SET GLOBAL is allowed. |
| Comment by Sergei Golubchik [ 2023-05-02 ] |
|
I don't see why anyone might want to set it in the config file. But generally I like consistency, and a global/session variable that cannot be set in a config file (no matter how pointless it'd be) definitely stands out. |