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

Doesn't work with psql meta-commands & plpgsql syntax? #28

Open
bhaskar2khaneja opened this issue Jan 30, 2019 · 1 comment
Open

Doesn't work with psql meta-commands & plpgsql syntax? #28

bhaskar2khaneja opened this issue Jan 30, 2019 · 1 comment

Comments

@bhaskar2khaneja
Copy link

bhaskar2khaneja commented Jan 30, 2019

Hi! Noticed the following two issues when using pgsanity:

  1. pgsanity seems to throw an error on the first line in this SQL code:
\set start 1234
delete from x where y >= :start;
  1. Also doesn't seem to catch syntax errors in plpgsql code block:
DO $zzz$
dsafdsf
BEGIN
update test set id=4 where city='def';
END
$zzz$ LANGUAGE plpgsql;
@bhaskar2khaneja bhaskar2khaneja changed the title Doesn't work with psql meta-commands? Doesn't work with psql meta-commands & pgplsql syntax? Jan 30, 2019
@bhaskar2khaneja bhaskar2khaneja changed the title Doesn't work with psql meta-commands & pgplsql syntax? Doesn't work with psql meta-commands & plpgsql syntax? Jan 30, 2019
@d2a-raudenaerde
Copy link

Can confirm doesn't work inside code blocks. This is most unfortunate, as we are moving more and more to functions.

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

2 participants