Re: Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function - Mailing list pgsql-bugs

From Joe Conway
Subject Re: Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function
Date
Msg-id 563A57FB.8040103@joeconway.com
Whole thread Raw
In response to Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function  (Nicole <nicole.king464@gmail.com>)
List pgsql-bugs
On 11/04/2015 08:39 AM, Nicole wrote:
> DECLARE
>   recurrence Client_Appointment_Recurrences;

This is not a bug and not the appropriate list for a question. That
said, try this:

8<------------------
CREATE TABLE "Client_Appointment_Recurrences" (id int);

CREATE OR REPLACE FUNCTION test() RETURNS text AS $$
DECLARE
  recurrence "Client_Appointment_Recurrences";
BEGIN
  RETURN 'ok';
END$$ LANGUAGE plpgsql;

SELECT test();
 test
------
 ok
(1 row)
8<------------------

HTH,

Joe

--=20
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development

pgsql-bugs by date:

Previous
From: Nicole
Date:
Subject: Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function
Next
From: Joe Conway
Date:
Subject: Re: Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function