Re: how do the pro's do this? (still a newbie) - Mailing list pgsql-general

From Command Prompt, Inc.
Subject Re: how do the pro's do this? (still a newbie)
Date
Msg-id Pine.LNX.4.30.0111030946330.25287-100000@commandprompt.com
Whole thread Raw
In response to Re: how do the pro's do this? (still a newbie)  (Gunnar Lindholm <gunnar@gunix.mine.nu>)
Responses Re: how do the pro's do this? (still a newbie)
List pgsql-general
On Sat, 3 Nov 2001, Gunnar Lindholm wrote:
>>Well, my only suggestion is:
>>>         ivad := nextval("vad_seq");
>>                              ^^^^^^^^^
>>Should the name be in single quotes?
>Then I get this error...
>ERROR:  parser: parse error at or near "vad_seq"
>so there is something I've done wrong, but I can't see....

Are you escaping the single quotes properly? Remember that your PL/pgSQL
function definition is itself bound by single quotes, so inside the code
definition for CREATE FUNCTION that line should look like:

        ivad := nextval(''vad_seq'');
or even:
        ivad := nextval(\'vad_seq\');



Regards,
Jw.
--
jlx@commandprompt.com
by way of pgsql-general@commandprompt.com


pgsql-general by date:

Previous
From: Rich Shepard
Date:
Subject: Re: Sum(time) possible?
Next
From: Konstantinos Agouros
Date:
Subject: Re: Sum(time) possible?