Skip to content

Commit 7d38e59

Browse files
committed
Fix broken example for PREPARE.
1 parent 4eb1165 commit 7d38e59

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/src/sgml/ref/prepare.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/prepare.sgml,v 1.14 2004/09/30 04:23:27 neilc Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/prepare.sgml,v 1.15 2004/10/29 19:40:33 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -152,9 +152,9 @@ PREPARE <replaceable class="PARAMETER">plan_name</replaceable> [ (<replaceable c
152152
Create a prepared query for an <command>INSERT</command> statement,
153153
and then execute it:
154154
<programlisting>
155-
PREPARE fooplan (int, text, bool, numeric(8,2)) AS
156-
INSERT INTO foo VALUES($1, '$2', '$3', '$4');
157-
EXECUTE fooplan(1, 'Hunter Valley', 't', '200.00');
155+
PREPARE fooplan (int, text, bool, numeric) AS
156+
INSERT INTO foo VALUES($1, $2, $3, $4);
157+
EXECUTE fooplan(1, 'Hunter Valley', 't', 200.00);
158158
</programlisting>
159159
</para>
160160

0 commit comments

Comments
 (0)