Skip to content

Commit 6de1fef

Browse files
committed
Fix incorrect SPI example, per Yoshihisa Nakano.
1 parent a9b1ff4 commit 6de1fef

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-
INSERT 167631 1
3047+
INSERT 0 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-
INSERT 167712 1
3076+
INSERT 0 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-
INSERT 167713 1
3084+
INFO: EXECQ: 1
3085+
INSERT 0 1
30863086
=&gt; SELECT * FROM a;
30873087
x
30883088
---

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy