column name does not exist - Mailing list pgsql-novice

From abhinav mehrotra
Subject column name does not exist
Date
Msg-id 9e157d6c0907280941r563545e9q7cfbb1f655560150@mail.gmail.com
Whole thread Raw
Responses Re: column name does not exist  (Michael Wood <esiotrot@gmail.com>)
List pgsql-novice
 
Hi All,
 
I have created a stored procedure
 
CREATE OR REPLACE FUNCTION ab(integer, integer,varchar,text,integer) RETURNS text AS'
DECLARE
 ret text;
BEGIN
     if(ret is null) then
          raise notice ''invalid auxiliary tag'';
     end if;
     return ret;
END;
'LANGUAGE 'plpgsql';
 
On doing: select * from ab (1,4,"exam","abhi",5);
 
I get an error : ERROR: column "exam" does not exist.
 
 
Any idea what is going wrong? Am I missing something?
 
Thanks in Advance
Abhinav
 

 

pgsql-novice by date:

Previous
From: Peter Jackson
Date:
Subject: Re: Location of databases
Next
From: Michael Wood
Date:
Subject: Re: column name does not exist