Skip to content

Commit 1b471f8

Browse files
committed
raw commit
1 parent 8591179 commit 1b471f8

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

tests/rpl.sh

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,28 @@ psql -p 5433 -c "SELECT pg_exec_stored_plan('../test.txt');"
8282
#ENUMOID -----------------------------------------------------------------------
8383
psql -p 5432 -c "SELECT pg_store_query_plan('../test.txt', 'INSERT INTO bug (description, status) VALUES (''abc3'', ''new''::tests.bug_status);');"
8484
psql -p 5433 -c "SELECT pg_exec_stored_plan('../test.txt');"
85-
#psql -p 5432 -c "SELECT pg_store_query_plan('../test.txt', 'SELECT * FROM bug WHERE status=''open''');"
86-
#psql -p 5433 -c "SELECT pg_exec_stored_plan('../test.txt');"
85+
8786
echo "ENUMOID test"
88-
#psql -p 5432 -c "INSERT INTO public.bug1 (status) VALUES ('new');"
8987
psql -p 5432 -c "SELECT pg_store_query_plan('../test.txt', '
9088
SELECT A.description, B.id
9189
FROM bug as A, bug1 AS B
9290
WHERE A.status = B.status;
9391
');"
9492
psql -p 5433 -c "SELECT pg_exec_stored_plan('../test.txt');"
95-
psql -p 5432 -c "SELECT * FROM bug;"
96-
psql -p 5432 -c "SELECT * FROM bug1;"
93+
94+
# Prepared operator
95+
psql -p 5432 -c "PREPARE abc (TEXT, tests.bug_status) AS
96+
INSERT INTO bug (description, status)
97+
VALUES (\$1,\$2);
98+
SELECT pg_store_query_plan('../test.txt', '
99+
EXECUTE abc(''test1'', ''closed'')
100+
');"
101+
102+
psql -p 5433 -c "PREPARE abc (TEXT, tests.bug_status) AS
103+
INSERT INTO bug (description, status)
104+
VALUES (\$1,\$2);
105+
SELECT pg_exec_stored_plan('../test.txt');"
106+
107+
psql -p 5433 -c "SELECT * FROM bug;"
108+
psql -p 5433 -c "SELECT * FROM bug1;"
97109

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