Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-23908

Implement SELECT ... OFFSET ... FETCH ...

Details

    Description

      The 2008 SQL standard introduced the following syntax:

      OFFSET start { ROW | ROWS }
      FETCH { FIRST | NEXT } [ count ] { ROW | ROWS } { ONLY | WITH TIES }
      

      See https://www.postgresql.org/docs/13/sql-select.html#SQL-LIMIT for a description.

      This would also allow does not include the non-standard LIMIT WITH TIES.

      Attachments

        Issue Links

          Activity

            cvicentiu Vicențiu Ciorbaru added a comment - The patch is pushed for review here: https://github.com/MariaDB/server/compare/30dc4287ec3d46bae7593f56383b9f3738e3c4e6..cf2e494bbb9b07f5847fd64cbb9029045c39236f bb-10.6-refactor-limit
            greenman Ian Gilfillan added a comment -

            This doesn't include LIMIT WITH TIES, as implemented by PostgreSQL, and which would probably be more familiar for MariaDB users to use.

            greenman Ian Gilfillan added a comment - This doesn't include LIMIT WITH TIES, as implemented by PostgreSQL, and which would probably be more familiar for MariaDB users to use.

            greenman I'll push a follow-up fix, this shouldn't be too hard. It'll make it into 10.6.1

            cvicentiu Vicențiu Ciorbaru added a comment - greenman I'll push a follow-up fix, this shouldn't be too hard. It'll make it into 10.6.1

            I'd rather suggest to stay within the sql standard syntax here.

            serg Sergei Golubchik added a comment - I'd rather suggest to stay within the sql standard syntax here.
            ralf.gebhardt Ralf Gebhardt added a comment -

            I agree with Sergei. It should not be difficult to switch to the new Syntax used by the standard if WITH TIES is needed

            ralf.gebhardt Ralf Gebhardt added a comment - I agree with Sergei. It should not be difficult to switch to the new Syntax used by the standard if WITH TIES is needed

            People

              cvicentiu Vicențiu Ciorbaru
              greenman Ian Gilfillan
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.