From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Zouroudis <mzouroudis@idealcorp.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: problem with insertion of serial id
Date: Sat, 10 Aug 2002 14:42:13 -0400
Message-ID: <7966.1029004933@sss.pgh.pa.us> (raw)
In-Reply-To: <3D555083.9040402@idealcorp.com>
References: <3D555083.9040402@idealcorp.com>
Michael Zouroudis <mzouroudis@idealcorp.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, mzouroudis@idealcorp.com
Subject: Re: problem with insertion of serial id
In-Reply-To: <7966.1029004933@sss.pgh.pa.us>
References: <3D555083.9040402@idealcorp.com> <7966.1029004933@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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