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

SELECT INTO statement executionType is LISTING #81

Open
lee-campbell opened this issue Dec 17, 2024 · 0 comments
Open

SELECT INTO statement executionType is LISTING #81

lee-campbell opened this issue Dec 17, 2024 · 0 comments

Comments

@lee-campbell
Copy link

lee-campbell commented Dec 17, 2024

The following call:

const result = identify("SELECT * INTO public.\"MyTable1\" FROM public.\"MyTable2\"");

Yields the following result:

[
  {
    "start": 0,
    "end": 53,
    "text": "SELECT * INTO public.\"MyTable1\" FROM public.\"MyTable2\"",
    "type": "SELECT",
    "executionType": "LISTING",
    "parameters": [
    ],
    "tables": [
    ]
  }
]

Given that SELECT INTO statements modify data, the executionType is arguably more accurately described by MODIFICATION.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant