query has no destination for result data
query has no destination for result data
От:
Patta <pmuthuz@gmail.com>
Дата:
Hi,
I'm a beginner in postgresql. I get the below error. Could you help me
to fix this one?
ERROR: query has no destination for result data
HINT: If you want to discard the results of a SELECT, use PERFORM instead.
CONTEXT: PL/pgSQL function "insertcommjunction1" line 7 at SQL statement
The function is as follows.
CREATE OR REPLACE FUNCTION test()
RETURNS text AS
$BODY$
DECLARE
query_rec record;
idxfti tsvector;
c1 cursor for select * from Re: query has no destination for result data
От:
Alan Hodgson <ahodgson@simkin.ca>
Дата:
On Friday 23 April 2010, Patta wrote: > Hi, > > I'm a beginner in postgresql. I get the below error. Could you help me > to fix this one? > > ERROR: query has no destination for result data > HINT: If you want to discard the results of a SELECT, use PERFORM > instead. CONTEXT: PL/pgSQL function "insertcommjunction1" line 7 at SQL > statement > > The function is as follows. > CREATE OR REPLACE FUNCTION test() > RETURNS text AS > $BODY$ > DECLARE > query_rec record; > idxfti tsvector; > c1 cursor for select * from
Re: query has no destination for result data
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Patta writes: > I'm a beginner in postgresql. I get the below error. Could you help me > to fix this one? > ERROR: query has no destination for result data > HINT: If you want to discard the results of a SELECT, use PERFORM instead. > CONTEXT: PL/pgSQL function "insertcommjunction1" line 7 at SQL statement > The function is as follows. > CREATE OR REPLACE FUNCTION test() Um, that's not the function being complained of ... regards, tom lane