Commit aa728d5f authored by Bruce Momjian's avatar Bruce Momjian

Document limitation of SPI_execute() using multiple queries in a single

string.
parent 9f6ed2f4
<!-- $PostgreSQL: pgsql/doc/src/sgml/spi.sgml,v 1.52 2007/02/01 19:10:24 momjian Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/spi.sgml,v 1.53 2007/02/18 01:47:40 momjian Exp $ -->
<chapter id="spi"> <chapter id="spi">
<title>Server Programming Interface</title> <title>Server Programming Interface</title>
...@@ -321,7 +321,8 @@ SPI_execute("INSERT INTO foo SELECT * FROM bar", false, 5); ...@@ -321,7 +321,8 @@ SPI_execute("INSERT INTO foo SELECT * FROM bar", false, 5);
</para> </para>
<para> <para>
You can pass multiple commands in one string. You can pass multiple commands in one string, but later commands cannot
depend on the creation of objects earlier in the string.
<function>SPI_execute</function> returns the <function>SPI_execute</function> returns the
result for the command executed last. The <parameter>count</parameter> result for the command executed last. The <parameter>count</parameter>
limit applies to each command separately, but it is not applied to limit applies to each command separately, but it is not applied to
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment