GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [BUG] JSQLParser 5.4-SNAPSHOT : PostgreSQL : SEARCH BREADTH FIRST BY not supported · Issue #2308 · JSQLParser/JSqlParser

[BUG] JSQLParser 5.4-SNAPSHOT : PostgreSQL : SEARCH BREADTH FIRST BY not supported #2308

New issue
Copy link
New issue
Copy link
Closed
Feature
#2402
Closed
[BUG] JSQLParser 5.4-SNAPSHOT : PostgreSQL : SEARCH BREADTH FIRST BY not supported#2308
Feature
#2402
Copy link
Labels
Sponsor neededexoticpostgres

Description

@tomershay
tomershay
opened on Sep 12, 2025
Issue body actions

SEARCH BREADTH FIRST BY is part of the SQL 99 extensions specification, and I believe it was implemented by PostgreSQL in v14.

https://sql-99.readthedocs.io/en/latest/chapters/32.html#recursive-unions

Sample query:

WITH RECURSIVE team_hierarchy AS (
    SELECT employee_id, first_name, manager_id, ARRAY[employee_id] AS path
    FROM employees
    WHERE manager_id IS NULL
    UNION ALL
    SELECT e.employee_id, e.first_name, e.manager_id, th.path || e.employee_id
    FROM employees e
    INNER JOIN team_hierarchy th ON e.manager_id = th.employee_id
)
SEARCH BREADTH FIRST BY employee_id SET order_col
SELECT
    employee_id,
    first_name,
    path,
    order_col
FROM team_hierarchy
ORDER BY order_col;

Error:

ParseException: Encountered: <S_IDENTIFIER> / "SEARCH", at line 10, column 1, in lexical state DEFAULT.
Was expecting one of these terminals within expansion starting at 974:21:
    <K_COMMA> (inside 4375:5) ...

Activity

  1. manticore-projects
    added
    exotic
    on Sep 13, 2025
  2. manticore-projects
    added the
    Feature
    issue type on Sep 13, 2025
  3. manticore-projects
    added
    postgres
    Sponsor needed
    on Sep 13, 2025
  4. manticore-projects
    closed this as completedin #2402on Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Sponsor neededexoticpostgres

    Type

    Feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.