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

Issue 386: Do not call quote_ident() within repack_one_database() #387

Merged
merged 3 commits into from
Mar 12, 2024

Conversation

za-arthur
Copy link
Collaborator

@za-arthur za-arthur commented Mar 11, 2024

It isn't necessary to call quote_ident() within repack_one_database(). tablespace_dest is passed to repack.create_table(), which already calls quote_ident().

quote_ident() within repack_one_database() can return quoted tablespace_dest, calling quote_ident() second time will make unexpected tablespace name with surrounding quotes.

Tests were added.

Issue: #386

Copy link
Collaborator

@andreasscherbaum andreasscherbaum left a comment

Choose a reason for hiding this comment

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

Looks good.

@za-arthur
Copy link
Collaborator Author

Thanks for the approval. Merging.

@za-arthur za-arthur merged commit 7da5302 into master Mar 12, 2024
18 checks passed
@za-arthur za-arthur deleted the issue_386_tablespace_quote_indent branch March 12, 2024 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants