[MDEV-23908] Implement SELECT ... OFFSET ... FETCH ... Created: 2020-10-07 Updated: 2022-08-27 Resolved: 2021-04-21 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer, Parser |
| Fix Version/s: | 10.6.0 |
| Type: | Task | Priority: | Critical |
| Reporter: | Ian Gilfillan | Assignee: | Vicențiu Ciorbaru |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Compatibility, SQL | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| Description |
|
The 2008 SQL standard introduced the following syntax:
See https://www.postgresql.org/docs/13/sql-select.html#SQL-LIMIT for a description. This |
| Comments |
| Comment by Vicențiu Ciorbaru [ 2021-03-09 ] |
|
The patch is pushed for review here: bb-10.6-refactor-limit |
| Comment by Ian Gilfillan [ 2021-04-23 ] |
|
This doesn't include LIMIT WITH TIES, as implemented by PostgreSQL, and which would probably be more familiar for MariaDB users to use. |
| Comment by Vicențiu Ciorbaru [ 2021-04-24 ] |
|
greenman I'll push a follow-up fix, this shouldn't be too hard. It'll make it into 10.6.1 |
| Comment by Sergei Golubchik [ 2021-04-26 ] |
|
I'd rather suggest to stay within the sql standard syntax here. |
| Comment by Ralf Gebhardt [ 2021-04-26 ] |
|
I agree with Sergei. It should not be difficult to switch to the new Syntax used by the standard if WITH TIES is needed |