Skip to content

Commit

Permalink
DB2i does not support LIMIT clause
Browse files Browse the repository at this point in the history
  • Loading branch information
nene committed Nov 12, 2023
1 parent a053b15 commit 72c51b5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/languages/db2i/db2i.formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const reservedClauses = expandPhrases([
'ORDER [SIBLINGS] BY [INPUT SEQUENCE]',
'OFFSET',
'FETCH {FIRST | NEXT}',
'LIMIT',
'FOR UPDATE [OF]',
'FOR READ ONLY',
'OPTIMIZE FOR',
Expand Down

2 comments on commit 72c51b5

@m-tyler
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Back to at least 7.1 of the IBM i sytem LIMIT has been supported.
https://www.ibm.com/docs/en/i/7.1?topic=subselect-fetch-first-clause

@nene
Copy link
Collaborator Author

@nene nene commented on 72c51b5 Nov 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing out. I only looked at the syntax diagram at the top of this page and didn't realize that at the bottom it also mentions that LIMIT is supported as an alternate syntax.

Please sign in to comment.