Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oracle 11.2 OFFSET FETCH gives error #562

Open
niphadkarneha opened this issue Apr 2, 2020 · 3 comments
Open

Oracle 11.2 OFFSET FETCH gives error #562

niphadkarneha opened this issue Apr 2, 2020 · 3 comments
Labels
bug Something isn't working driver:oracle Issues relating to the Oracle driver help wanted Community contributions are welcome.

Comments

@niphadkarneha
Copy link
Contributor

niphadkarneha commented Apr 2, 2020

Describe the bug
I am using Oracle 11.2 database. When I run a query to fetch a list of account numbers for e.g.

SELECT
  account_number
FROM
  dummy.table FETCH NEXT 10000 ROWS ONLY

It throws an error of, "Error: ORA-00933: SQL command not properly ended".
Adding a ' ; ' does not make any difference. The problem lies in the FETCH NEXT command which is auto-generated by Cubejs which is incompatible with Oracle 11.2.

stackoverflow Issue

Expected behavior
Simple list of account numbers in a single column.

Version:

  • Oracle version: 11.2
  • node [node -v] 12.16.1
  • npm [npm -v] 6.13.4

Additional context
I'd be happy to provide any/all/more details.

@paveltiunov
Copy link
Member

@niphadkarneha Hey Neha! Thanks for posting this! I can confirm this syntax is available since version 12.

@paveltiunov paveltiunov added bug Something isn't working driver help wanted Community contributions are welcome. labels Apr 2, 2020
@malakiasz
Copy link

Hello ,i have same problem with Oracle 11 g ( schema not generate correctly query for Oracle 11g)
U have A solutions for this ?
Thanx

@keydunov keydunov removed the driver label Oct 27, 2020
@hassankhan hassankhan added the driver:oracle Issues relating to the Oracle driver label Apr 26, 2021
@igorlukanin
Copy link
Member

For the record, the solution to this should be similar to what is outlined in this comment: #191 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working driver:oracle Issues relating to the Oracle driver help wanted Community contributions are welcome.
Projects
None yet
Development

No branches or pull requests

6 participants