# Bug? Parser problem with OFFSET i subquery

**URL:** <https://forums.toadworld.com/t/bug-parser-problem-with-offset-i-subquery/54268>\
**Category:** Toad for Oracle & DevOps Toolkit\
**Created:** [December 14, 2021, 11:03am UTC](https://forums.toadworld.com/t/bug-parser-problem-with-offset-i-subquery/54268 "2021-12-14T11:03:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreas.ng](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@andreas.ng](https://forums.toadworld.com/u/andreas.ng)\
**Post date:** [December 14, 2021, 11:03am UTC](https://forums.toadworld.com/t/bug-parser-problem-with-offset-i-subquery/54268/1 "2021-12-14T11:03:54Z")

</div>

This works fine to execute

```auto
SELECT 1
  FROM DUAL
 WHERE 1 IN (SELECT 2
               FROM DUAL
             OFFSET 0 ROWS
              FETCH NEXT 1 ROWS ONLY)

```

But Toad complains about an error on "ONLY", the syntax error simply says "Parser: ORA-SQL-PLSQL". I'm on Toad version 15.0.97.1178.

---

<div class="post-metadata">

**Author:** ![avergison](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/avergison/32/66_2.png) [@avergison](https://forums.toadworld.com/u/avergison)\
**Post date:** [December 14, 2021, 5:05pm UTC](https://forums.toadworld.com/t/bug-parser-problem-with-offset-i-subquery/54268/2 "2021-12-14T17:05:48Z")

</div>

This is a regression appearing in Toad 14.1.84.872 of Feb 8 (parser version 5.364).  
To be fixed, of course. (QP-3932)

Thanks for reporting!  
Andre

---

<div class="post-metadata">

**Author:** ![avergison](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/avergison/32/66_2.png) [@avergison](https://forums.toadworld.com/u/avergison)\
**Post date:** [December 14, 2021, 5:41pm UTC](https://forums.toadworld.com/t/bug-parser-problem-with-offset-i-subquery/54268/3 "2021-12-14T17:41:13Z")

</div>

Fixed ---------

---

<div class="post-metadata">

**Author:** ![wnocella](https://avatars.discourse-cdn.com/v4/letter/w/8dc957/32.png) [@wnocella](https://forums.toadworld.com/u/wnocella)\
**Post date:** [January 28, 2022, 1:19pm UTC](https://forums.toadworld.com/t/bug-parser-problem-with-offset-i-subquery/54268/4 "2022-01-28T13:19:28Z")

</div>

I have Toad for Oracle 15.0.97.1178.

I have error when formatting it.

How can I fix the problem ?

I opened another Thread few months ago: [My Post](https://forums.toadworld.com/t/error-formatter-with-fetch-first/54295)

Error:

[Error] Syntax check (8: 33): ERROR: line 7, column 33, ending line 7, column 36: Found 'only': This statement may be ambiguous, please report it to Quest Software  
Parser: ORA-SQL-PLSQL, on line: 2, context: select 1  
from dual  
where 1 in (select 2  
from dual  
offset 0 rows  
fetch next 1 rows only)

---

<div class="post-metadata">

**Author:** ![avergison](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/avergison/32/66_2.png) [@avergison](https://forums.toadworld.com/u/avergison)\
**Post date:** [January 30, 2022, 9:38am UTC](https://forums.toadworld.com/t/bug-parser-problem-with-offset-i-subquery/54268/5 "2022-01-30T09:38:53Z")

</div>

Hello,  
As said in [Bug? Parser problem with OFFSET i subquery](https://forums.toadworld.com/t/bug-parser-problem-with-offset-i-subquery/54268) it was to be fixed (and has been fixed) in issue QP-3932. It will become available to the Toad team in the coming week.

Thanks,  
Andre
