Re: RETURNS TABLE function: ERROR: column reference "word" is ambiguous
От | David G. Johnston |
---|---|
Тема | Re: RETURNS TABLE function: ERROR: column reference "word" is ambiguous |
Дата | |
Msg-id | CAKFQuwYdosGF6grAZOgZLTNJuhimuiis0WbpH9Chk-T7uSojNw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: RETURNS TABLE function: ERROR: column reference "word" is ambiguous (Pavel Stehule <pavel.stehule@gmail.com>) |
Ответы |
Re: RETURNS TABLE function: ERROR: column reference "word"
is ambiguous
|
Список | pgsql-general |
2016-08-10 19:05 GMT+02:00 Alexander Farber <alexander.farber@gmail.com>:Thank you Adrian and others -
I am trying to replace INSERT into temp table in my custom function by RETURN NEXT, but get an error:CREATE OR REPLACE FUNCTION words_check_words(-- INSERT INTO _words(word, score)
IN in_uid integer,
IN in_gid integer,
IN in_tiles jsonb)
RETURNS TABLE(word varchar, score integer) AS
$func$
.......
-- VALUES (upper(_word), _score);
RETURN NEXT (word, score);
ERROR: RETURN NEXT cannot have a parameter in function with OUT parameters
LINE 98: RETURN NEXT (word, score);This was limit in older version
He's supposedly using 9.5 which documents "RETURN NEXT expression;"
Dave
В списке pgsql-general по дате отправления: