Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

SQL clause WITH is being added as a referenced object  #56

@rbeckham

Description

@rbeckham

Hi,
In my code I am writing a sql statement that has a WITH clause in it. Source Orbit is picking this up as a object that is referenced.

exec sql declare c1 cursor for 
        with temp as (
          select
           field1,
           field2
          from table1
        )
Select * from temp;

Source orbit is throwing an error saying it cannot find the TEMP object....well this doesn't really exist.
I think in these cases SO will have to figure out that temp is used in connection to the WITH clause and will need to only consider objects inside the WITH clause as valid objects referenced. In my example above, SO should only find TABLE1.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions