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

Commit52dbd9f

Browse files
committed
Add missing support for the latest SPI status codes.
SPI_result_code_string() was missing support for SPI_OK_TD_REGISTER,and in v15 and later, it was missing support for SPI_OK_MERGE, as waspltcl_process_SPI_result().The last of those would trigger an error if a MERGE was executed fromPL/Tcl. The others seem fairly innocuous, but worth fixing.Back-patch to all supported branches. Before v15, this is just addingSPI_OK_TD_REGISTER to SPI_result_code_string(), which is unlikely tobe seen by anyone, but seems worth doing for completeness.Reviewed by Tom Lane.Discussion:https://postgr.es/m/CAEZATCUg8V%2BK%2BGcafOPqymxk84Y_prXgfe64PDoopjLFH6Z0Aw%40mail.gmail.comhttps://postgr.es/m/CAEZATCUMe%2B_KedPMM9AxKqm%3DSZogSxjUcrMe%2BsakusZh3BFcQw%40mail.gmail.com
1 parent463bef3 commit52dbd9f

File tree

1 file changed

+2
-0
lines changed
  • src/backend/executor

1 file changed

+2
-0
lines changed

‎src/backend/executor/spi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,6 +1866,8 @@ SPI_result_code_string(int code)
18661866
return"SPI_OK_REL_REGISTER";
18671867
caseSPI_OK_REL_UNREGISTER:
18681868
return"SPI_OK_REL_UNREGISTER";
1869+
caseSPI_OK_TD_REGISTER:
1870+
return"SPI_OK_TD_REGISTER";
18691871
}
18701872
/* Unrecognized code ... return something useful ... */
18711873
sprintf(buf,"Unrecognized SPI code %d",code);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp