Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Mutable SQL commands should be used with Spi::update().#1114

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
montanalow merged 1 commit intopostgresml:masterfromhiguoxing:fix-spi-call
Oct 23, 2023

Conversation

higuoxing
Copy link
Contributor

@higuoxinghiguoxing commentedOct 23, 2023
edited
Loading

Commands like 'INSERT', 'CREATE TABLE' are modifying database objects. They should be used with 'Spi::update()'12.

Besides, one of the unnecessary calling of '.clone()' is removed.

Co-Authored-By: Chen Mulongchenmulong@gmail.com

Footnotes

  1. https://www.postgresql.org/docs/current/spi-spi-execute.html

  2. https://github.com/pgcentralfoundation/pgrx/blob/64fbc2e2efb06212046082ffcde2e794ccb4d48a/pgrx/src/spi/client.rs#L60

Commands like 'INSERT', 'CREATE TABLE' are modifying database objects.They should be used in 'Spi::update()'[1][2].Besides, one of the unnecessary calling of '.clone()' is removed.[1]:https://www.postgresql.org/docs/current/spi-spi-execute.html[2]:https://github.com/pgcentralfoundation/pgrx/blob/64fbc2e2efb06212046082ffcde2e794ccb4d48a/pgrx/src/spi/client.rs#L60Co-Authored-By: Chen Mulong <chenmulong@gmail.com>
@higuoxinghiguoxing changed the titleMutable SQL commands should be used in Spi::update().Mutable SQL commands should be used with Spi::update().Oct 23, 2023
@montanalowmontanalow self-requested a reviewOctober 23, 2023 15:46
@montanalow
Copy link
Contributor

Thanks for this fix!

@montanalowmontanalow merged commita46825a intopostgresml:masterOct 23, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@montanalowmontanalowAwaiting requested review from montanalow

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@higuoxing@montanalow

[8]ページ先頭

©2009-2025 Movatter.jp