Skip to content

SELECT without columns fails #274

Description

@FranckPachot

Describe the bug

A SELECT without columns fails on an internal error:

syntax error at or near ")"
LINE 1: SELECT "oid", "typname" FROM "pg_type" WHERE "oid" IN ()
^

To Reproduce

select from pg_class;

Expected behavior

On psql it displays the number of rows:

postgres=> select from pg_class;
--
(419 rows)

VS Code version

Version: 1.126.0 (user setup)
Commit: 7e7950df89d055b5a378379db9ee14290772148a
Date: 2026-06-23T01:46:13Z
Electron: 42.2.0
ElectronBuildId: 14159160
Chromium: 148.0.7778.97
Node.js: 24.15.0
V8: 14.8.178.14-electron.0
OS: Windows_NT arm64 10.0.26200

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions