Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1b471f8

Browse files
committed
raw commit
1 parent8591179 commit1b471f8

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)

[8]ページ先頭

©2009-2025 Movatter.jp