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

Improve SubLink printer #105

Closed
lelit opened this issue May 30, 2022 · 0 comments
Closed

Improve SubLink printer #105

lelit opened this issue May 30, 2022 · 0 comments

Comments

@lelit
Copy link
Owner

lelit commented May 30, 2022

Add a space after LIKE here:

$ pgpp -S "select t1.* from tab1 as t1 where t1.code like (select t2.code||'.%' from tab1 t2 where t2.id = 'foo')"
SELECT t1.*
FROM tab1 AS t1
WHERE t1.code LIKE(SELECT t2.code || '.%'
                   FROM tab1 AS t2
                   WHERE t2.id = 'foo')
lelit added a commit that referenced this issue May 30, 2022
This is a more general fix for issue #105.
@lelit lelit closed this as completed Jun 19, 2022
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