pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedVersion 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function
4+ messages / 2 participants
[nested] [flat]
* Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function
@ 2015-11-04 16:39 Nicole <nicole.king464@gmail.com>
2015-11-04 19:09 ` Re: Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function Joe Conway <mail@joeconway.com>
0 siblings, 1 reply; 4+ messages in thread
From: Nicole @ 2015-11-04 16:39 UTC (permalink / raw)
To: pgsql-bugs
Given this function body:
DECLARE
recurrence Client_Appointment_Recurrences;
...
BEGIN
...
END
and a table called "Client_Appointment_Recurrences", the message is
"ERROR: type client_appointment_recurrences does not exist".
Rename the table to "client_appointment_recurrences" and the error vanishes
Regards
Nicole
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function
2015-11-04 16:39 Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function Nicole <nicole.king464@gmail.com>
@ 2015-11-04 19:09 ` Joe Conway <mail@joeconway.com>
0 siblings, 0 replies; 4+ messages in thread
From: Joe Conway @ 2015-11-04 19:09 UTC (permalink / raw)
To: Nicole <nicole.king464@gmail.com>; 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
--
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development
Attachments:
signature.asc (application/pgp-signature, 835B) download
^ permalink raw reply [nested|flat] 4+ messages in thread
* Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function
@ 2015-11-04 17:43 Nicole <nicole.king464@gmail.com>
2015-11-04 19:16 ` Re: Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function Joe Conway <mail@joeconway.com>
0 siblings, 1 reply; 4+ messages in thread
From: Nicole @ 2015-11-04 17:43 UTC (permalink / raw)
To: pgsql-bugs
Further to previous message. I've found inconsistencies in case
sensitivity of this type in renaming a FOREIGN KEY CONSTRAINT.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function
2015-11-04 17:43 Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function Nicole <nicole.king464@gmail.com>
@ 2015-11-04 19:16 ` Joe Conway <mail@joeconway.com>
0 siblings, 0 replies; 4+ messages in thread
From: Joe Conway @ 2015-11-04 19:16 UTC (permalink / raw)
To: Nicole <nicole.king464@gmail.com>; pgsql-bugs
On 11/04/2015 09:43 AM, Nicole wrote:
> Further to previous message. I've found inconsistencies in case
> sensitivity of this type in renaming a FOREIGN KEY CONSTRAINT.
As mentioned on the previous email, this is not a bug report. Please
post your questions to the novice or general mailing lists found here:
http://www.postgresql.org/community/lists/
Additionally please see this link before posting:
https://wiki.postgresql.org/wiki/Guide_to_reporting_problems
HTH,
Joe
--
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development
Attachments:
signature.asc (application/pgp-signature, 835B) download
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2015-11-04 19:16 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-11-04 16:39 Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function Nicole <nicole.king464@gmail.com>
2015-11-04 19:09 ` Joe Conway <mail@joeconway.com>
2015-11-04 17:43 Version 9.4 CREATE FUNCTION - ERROR: type xxxx does not exist create function Nicole <nicole.king464@gmail.com>
2015-11-04 19:16 ` Joe Conway <mail@joeconway.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox