From: | Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com> |
---|---|
To: | andrea(at)lombardoni(dot)ch |
Cc: | adrian(dot)klaver(at)gmail(dot)com, pgsql-general(at)postgresql(dot)org, "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com> |
Subject: | Re: Problem with temporary tables |
Date: | 2010-06-30 13:46:53 |
Message-ID: | AANLkTimj-sA4C7zs8xhjfpxA5qAdUd3OWyj-crb6tYpN@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wed, Jun 30, 2010 at 2:41 PM, Andrea Lombardoni <andrea(at)lombardoni(dot)ch> wrote:
>> You need to use EXECUTE for the INSERT statement as well per error:
>>
>> CONTEXT: SQL statement "INSERT INTO idmap (oldid, type, newid) VALUES(1,
>> 1, 1)" PL/pgSQL function "test" line 16 at SQL statement
>
> Thanks, this works and solves my problem.
>
> Still, I find this behaviour to be rather quirky.
>
it is fixed on 8.3. So you are out of luck with 8.2 on this one I'm
afraid, gotta go with eXECUTe
--
GJ
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2010-06-30 13:47:06 | Re: Problem with temporary tables |
Previous Message | Andrea Lombardoni | 2010-06-30 13:41:18 | Re: Problem with temporary tables |