Re: problem with insertion of serial id

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Zouroudis <mzouroudis(at)idealcorp(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: problem with insertion of serial id
Date: 2002-08-10 18:42:13
Message-ID: 7966.1029004933@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Michael Zouroudis <mzouroudis(at)idealcorp(dot)com> writes:
> when i run this i get a parse error at or near "assets_asset_id_seq".

You need to double those quote marks, viz
... currval(''mom_mom_id_seq'') ...

Or you can backslash 'em (\'). The point is that the function body
begins life as a string literal, and so you have to get it through the
string-literal parser.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Brian McCane 2002-08-11 13:04:50 Re: Postgres performance slowly gets worse over a month
Previous Message Michael Zouroudis 2002-08-10 17:42:27 problem with insertion of serial id