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

deparse fails with DoStmt #98

Closed
herwinw opened this issue Sep 20, 2018 · 0 comments · Fixed by #109
Closed

deparse fails with DoStmt #98

herwinw opened this issue Sep 20, 2018 · 0 comments · Fixed by #109

Comments

@herwinw
Copy link
Contributor

herwinw commented Sep 20, 2018

irb(main):003:0> PgQuery.parse('DO $$ BEGIN PERFORM * FROM information_schema.tables; END $$ LANGUAGE plpgsql').deparse
RuntimeError: Can't deparse: DoStmt: {"args"=>[{"DefElem"=>{"defname"=>"as", "arg"=>{"String"=>{"str"=>" BEGIN PERFORM * FROM information_schema.tables; END "}}, "defaction"=>0, "location"=>3}}, {"DefElem"=>{"defname"=>"language", "arg"=>{"String"=>{"str"=>"plpgsql"}}, "defaction"=>0, "location"=>61}}]}

(I'll probably have a look at it next week, don't have time for it now, just creating this ticket as a reminder)

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

Successfully merging a pull request may close this issue.

1 participant