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

Commit6de1fef

Browse files
committed
Fix incorrect SPI example, per Yoshihisa Nakano.
1 parenta9b1ff4 commit6de1fef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎doc/src/sgml/spi.sgml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/spi.sgml,v 1.43 2005/09/12 18:40:19 neilc Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/spi.sgml,v 1.44 2005/12/07 15:39:25 tgl Exp $
33
-->
44

55
<chapter id="spi">
@@ -3044,7 +3044,7 @@ CREATE FUNCTION execq(text, integer) RETURNS integer
30443044
(1 row)
30453045

30463046
=&gt; INSERT INTO a VALUES (execq('INSERT INTO a VALUES (0)', 0));
3047-
INSERT167631 1
3047+
INSERT0 1
30483048
=&gt; SELECT execq('SELECT * FROM a', 0);
30493049
INFO: EXECQ: 0 -- inserted by execq
30503050
INFO: EXECQ: 1 -- returned by execq and inserted by upper INSERT
@@ -3073,16 +3073,16 @@ INFO: EXECQ: 2 -- 0 + 2, only one row inserted - as specified
30733073
=&gt; DELETE FROM a;
30743074
DELETE 3
30753075
=&gt; INSERT INTO a VALUES (execq('SELECT * FROM a', 0) + 1);
3076-
INSERT167712 1
3076+
INSERT0 1
30773077
=&gt; SELECT * FROM a;
30783078
x
30793079
---
30803080
1 -- no rows in a (0) + 1
30813081
(1 row)
30823082

30833083
=&gt; INSERT INTO a VALUES (execq('SELECT * FROM a', 0) + 1);
3084-
INFO: EXECQ:0
3085-
INSERT167713 1
3084+
INFO: EXECQ:1
3085+
INSERT0 1
30863086
=&gt; SELECT * FROM a;
30873087
x
30883088
---

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp