Commit 683b0d3a authored by Bruce Momjian's avatar Bruce Momjian

Of course, the simple change has ripple effects! Here's a patch for the

rangefunc regression test for the new behavior.

Joe Conway
parent 4f63e116
...@@ -48,9 +48,9 @@ INSERT INTO foo VALUES(2,1,'Mary'); ...@@ -48,9 +48,9 @@ INSERT INTO foo VALUES(2,1,'Mary');
-- sql, proretset = f, prorettype = b -- sql, proretset = f, prorettype = b
CREATE FUNCTION getfoo(int) RETURNS int AS 'SELECT $1;' LANGUAGE SQL; CREATE FUNCTION getfoo(int) RETURNS int AS 'SELECT $1;' LANGUAGE SQL;
SELECT * FROM getfoo(1) AS t1; SELECT * FROM getfoo(1) AS t1;
getfoo t1
-------- ----
1 1
(1 row) (1 row)
CREATE VIEW vw_getfoo AS SELECT * FROM getfoo(1); CREATE VIEW vw_getfoo AS SELECT * FROM getfoo(1);
...@@ -65,10 +65,10 @@ DROP VIEW vw_getfoo; ...@@ -65,10 +65,10 @@ DROP VIEW vw_getfoo;
DROP FUNCTION getfoo(int); DROP FUNCTION getfoo(int);
CREATE FUNCTION getfoo(int) RETURNS setof int AS 'SELECT fooid FROM foo WHERE fooid = $1;' LANGUAGE SQL; CREATE FUNCTION getfoo(int) RETURNS setof int AS 'SELECT fooid FROM foo WHERE fooid = $1;' LANGUAGE SQL;
SELECT * FROM getfoo(1) AS t1; SELECT * FROM getfoo(1) AS t1;
getfoo t1
-------- ----
1 1
1 1
(2 rows) (2 rows)
CREATE VIEW vw_getfoo AS SELECT * FROM getfoo(1); CREATE VIEW vw_getfoo AS SELECT * FROM getfoo(1);
...@@ -84,8 +84,8 @@ DROP VIEW vw_getfoo; ...@@ -84,8 +84,8 @@ DROP VIEW vw_getfoo;
DROP FUNCTION getfoo(int); DROP FUNCTION getfoo(int);
CREATE FUNCTION getfoo(int) RETURNS setof text AS 'SELECT fooname FROM foo WHERE fooid = $1;' LANGUAGE SQL; CREATE FUNCTION getfoo(int) RETURNS setof text AS 'SELECT fooname FROM foo WHERE fooid = $1;' LANGUAGE SQL;
SELECT * FROM getfoo(1) AS t1; SELECT * FROM getfoo(1) AS t1;
getfoo t1
-------- -----
Joe Joe
Ed Ed
(2 rows) (2 rows)
...@@ -139,9 +139,9 @@ DROP VIEW vw_getfoo; ...@@ -139,9 +139,9 @@ DROP VIEW vw_getfoo;
DROP FUNCTION getfoo(int); DROP FUNCTION getfoo(int);
CREATE FUNCTION getfoo(int) RETURNS int AS 'DECLARE fooint int; BEGIN SELECT fooid into fooint FROM foo WHERE fooid = $1; RETURN fooint; END;' LANGUAGE 'plpgsql'; CREATE FUNCTION getfoo(int) RETURNS int AS 'DECLARE fooint int; BEGIN SELECT fooid into fooint FROM foo WHERE fooid = $1; RETURN fooint; END;' LANGUAGE 'plpgsql';
SELECT * FROM getfoo(1) AS t1; SELECT * FROM getfoo(1) AS t1;
getfoo t1
-------- ----
1 1
(1 row) (1 row)
CREATE VIEW vw_getfoo AS SELECT * FROM getfoo(1); CREATE VIEW vw_getfoo AS SELECT * FROM getfoo(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment