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

docgen: add DO statement diagram #140680

Merged
merged 1 commit into from
Feb 10, 2025
Merged

Conversation

taroface
Copy link
Collaborator

@taroface taroface commented Feb 7, 2025

Added a SQL statement diagram for DO. The diagram looks like this:

image

This is necessary for the accompanying docs PR: cockroachdb/docs#19356

Epic: none
Release note: none
Release justification: non-production code change

@taroface taroface added the backport-25.1.x Flags PRs that need to be backported to 25.1 label Feb 7, 2025
@taroface taroface requested a review from DrewKimball February 7, 2025 16:05
@taroface taroface requested a review from a team as a code owner February 7, 2025 16:05
Copy link

blathers-crl bot commented Feb 7, 2025

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@taroface taroface removed the request for review from DrewKimball February 7, 2025 16:05
@taroface taroface changed the title DO statement diagram docgen: add DO statement diagram Feb 7, 2025
@taroface taroface requested a review from DrewKimball February 7, 2025 16:31
Copy link
Collaborator

@DrewKimball DrewKimball left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@taroface
Copy link
Collaborator Author

bors r=DrewKimball

@craig craig bot merged commit 562d26b into cockroachdb:master Feb 10, 2025
26 of 28 checks passed
craig bot pushed a commit that referenced this pull request Feb 12, 2025
141384: docgen: update DO statement diagram r=DrewKimball a=taroface

Correct the SQL diagram for `DO` blocks added in #140680. 

In the previous statement, `routine_body_str` could not be placed before `LANGUAGE PLPGSQL`, and an empty `DO`  statement was allowed. The corrected statement:

<img width="374" alt="image" src="https://github.com/user-attachments/assets/21772a89-994b-4836-a79f-09d4d00091bf" />

Epic: none
Release note: none
Release justification: non-production code change

Co-authored-by: Ryan Kuo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-25.1.x Flags PRs that need to be backported to 25.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants