提交 9122bf9d 编写于 作者: H Heikki Linnakangas

Remove bogus ORDER BY from test query.

The multiset_5 function returns a "SET OF example", but the 'a' column
was dropped from 'example' table earlier. The statement currently produces
a different error, because anytable cannot be passed to PREPARE, but if
that worked, this would fail because of the broken ORDER BY. The purpose
of this test is to test PREPARE with anytable, so let's not have a broken
ORDER BY.
上级 ae50210a
......@@ -991,7 +991,7 @@ DEALLOCATE p1;
-- FAIL: can't pass anytable as prepare argument
PREPARE p2 AS SELECT * FROM multiset_2( $1 ) order by a, b;
PREPARE p3(anytable) AS SELECT * FROM multiset_5( $1 ) order by a, b;
PREPARE p3(anytable) AS SELECT * FROM multiset_5( $1 );
-- FAIL: $1 is not a constant
PREPARE p4 AS SELECT * FROM project( TABLE( SELECT * FROM pg_am ), $1);
......
......@@ -3075,7 +3075,7 @@ ERROR: function multiset_2(unknown) does not exist
LINE 1: PREPARE p2 AS SELECT * FROM multiset_2( $1 ) order by a, b;
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
PREPARE p3(anytable) AS SELECT * FROM multiset_5( $1 ) order by a, b;
PREPARE p3(anytable) AS SELECT * FROM multiset_5( $1 );
ERROR: type "anytable" is not a valid parameter for PREPARE
-- FAIL: $1 is not a constant
PREPARE p4 AS SELECT * FROM project( TABLE( SELECT * FROM pg_am ), $1);
......
......@@ -3076,7 +3076,7 @@ ERROR: function multiset_2(unknown) does not exist
LINE 1: PREPARE p2 AS SELECT * FROM multiset_2( $1 ) order by a, b;
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
PREPARE p3(anytable) AS SELECT * FROM multiset_5( $1 ) order by a, b;
PREPARE p3(anytable) AS SELECT * FROM multiset_5( $1 );
ERROR: type "anytable" is not a valid parameter for PREPARE
-- FAIL: $1 is not a constant
PREPARE p4 AS SELECT * FROM project( TABLE( SELECT * FROM pg_am ), $1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册