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

Patch assignment #69

Merged
merged 3 commits into from
Aug 21, 2023
Merged

Patch assignment #69

merged 3 commits into from
Aug 21, 2023

Conversation

ChuckHend
Copy link
Member

@ChuckHend ChuckHend commented Aug 21, 2023

assignment of the archive table to pgmq extension was adding an extra semi-colon. this made pgmq_create() no longer idempotent. it would fail if the queue already existed.

Also added some extra test cases.

@@ -336,7 +336,7 @@ pub fn assign_queue(name: CheckedName<'_>) -> Result<String, PgmqError> {
}

pub fn assign_archive(name: CheckedName<'_>) -> Result<String, PgmqError> {
Ok(assign(&format!("{name}_archive; ")))
Ok(assign(&format!("{name}_archive")))
Copy link
Member Author

Choose a reason for hiding this comment

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

@sjmiller609 this is the bug

@ChuckHend ChuckHend marked this pull request as ready for review August 21, 2023 21:39
@ChuckHend ChuckHend merged commit 0f78462 into main Aug 21, 2023
10 checks passed
@ChuckHend ChuckHend deleted the patch-assignment branch August 21, 2023 21:55
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 this pull request may close these issues.

2 participants