You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WITH RECURSIVE search_graph(id, link, data, depth) AS (
SELECTg.id, g.link, g.data, 1FROM graph g
UNION ALLSELECTg.id, g.link, g.data, sg.depth+1FROM graph g, search_graph sg
WHEREg.id=sg.link
) CYCLE id SET is_cycle USING pathSELECT*FROM search_graph;
Is your feature request related to a problem? Please describe.
Postgres supports CYCLE detection in recursive CTEs, compare https://www.postgresql.org/docs/current/queries-with.html#QUERIES-WITH-CYCLE:
This should be expressible in goqu.
Describe the solution you'd like
Describe alternatives you've considered
Any other workaround like injecting a literal expression before the select would work too. Haven't found a way yet to do that.
Dialect
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: