Fix broken example for PREPARE.
authorTom Lane
Fri, 29 Oct 2004 19:40:33 +0000 (19:40 +0000)
committerTom Lane
Fri, 29 Oct 2004 19:40:33 +0000 (19:40 +0000)
doc/src/sgml/ref/prepare.sgml

index 4711a3002eab05f365c1290b21d9d4c3e084200b..450a829d52d2a40e87b81c8414b1b6e2816ed238 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -152,9 +152,9 @@ PREPARE plan_name [ (
    Create a prepared query for an INSERT statement,
    and then execute it:
 
-PREPARE fooplan (int, text, bool, numeric(8,2)) AS
-    INSERT INTO foo VALUES($1, '$2', '$3', '$4');
-EXECUTE fooplan(1, 'Hunter Valley', 't', '200.00');
+PREPARE fooplan (int, text, bool, numeric) AS
+    INSERT INTO foo VALUES($1, $2, $3, $4);
+EXECUTE fooplan(1, 'Hunter Valley', 't', 200.00);