-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: support DO statement for running running anonymous code blocks #107345
Comments
Hello, I am Blathers. I am here to help you get the issue triaged. Hoot - a bug! Though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here. I have CC'd a few people who may be able to assist you:
If we have not gotten back to your issue within a few business days, you can try the following:
🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
Tagging the SQL Queries team, as this may be related to ongoing work with plpgsql. (And there may already be a different issue to track this) |
Could we get an update here? Drizzle ORM migrations output DO for duplicate_object checking and I don't believe that is going to change anytime soon. Supporting this would go a long way toward being able to get Drizzle users to seriously consider CockroachDB as a viable option.
|
Thanks for the feedback @Enalmada. In v23.2 we're supporting PLpgSQL functions and procedures for the first time, which brings us a step closer towards supporting anonymous code blocks. We'll keep this issue updated with more information when we have it. |
This is a duplicate of #115268 - you can follow any updates there. |
Describe the problem
Running the following SQL
will return error
ERROR: at or near "do": syntax error
See the Postgres documentation for more details on the
DO
statement.Additional context
What was the impact?
This issue is affecting a number of tests in efcore.pg library
Jira issue: CRDB-30000
The text was updated successfully, but these errors were encountered: