Skip to content

Q. Support for anonymous code block execution? DO $$ ... END $$ #1652

Answered by jackc
hexnaught asked this question in Q&A
Discussion options

You must be logged in to vote

This is a limitation of the PostgreSQL. You cannot have arguments (e.g. $1, $2) inside of a DO block that come from outside. As far as PostgreSQL is concerned there are no arguments.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hexnaught
Comment options

Answer selected by hexnaught
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants