mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Fix incorrect SPI example, per Yoshihisa Nakano.
This commit is contained in:
parent
a9b1ff4c1d
commit
6de1fef52c
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/spi.sgml,v 1.43 2005/09/12 18:40:19 neilc Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/spi.sgml,v 1.44 2005/12/07 15:39:25 tgl Exp $
|
||||
-->
|
||||
|
||||
<chapter id="spi">
|
||||
@ -3044,7 +3044,7 @@ CREATE FUNCTION execq(text, integer) RETURNS integer
|
||||
(1 row)
|
||||
|
||||
=> INSERT INTO a VALUES (execq('INSERT INTO a VALUES (0)', 0));
|
||||
INSERT 167631 1
|
||||
INSERT 0 1
|
||||
=> SELECT execq('SELECT * FROM a', 0);
|
||||
INFO: EXECQ: 0 -- inserted by execq
|
||||
INFO: EXECQ: 1 -- returned by execq and inserted by upper INSERT
|
||||
@ -3073,7 +3073,7 @@ INFO: EXECQ: 2 -- 0 + 2, only one row inserted - as specified
|
||||
=> DELETE FROM a;
|
||||
DELETE 3
|
||||
=> INSERT INTO a VALUES (execq('SELECT * FROM a', 0) + 1);
|
||||
INSERT 167712 1
|
||||
INSERT 0 1
|
||||
=> SELECT * FROM a;
|
||||
x
|
||||
---
|
||||
@ -3081,8 +3081,8 @@ INSERT 167712 1
|
||||
(1 row)
|
||||
|
||||
=> INSERT INTO a VALUES (execq('SELECT * FROM a', 0) + 1);
|
||||
INFO: EXECQ: 0
|
||||
INSERT 167713 1
|
||||
INFO: EXECQ: 1
|
||||
INSERT 0 1
|
||||
=> SELECT * FROM a;
|
||||
x
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user