Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4B60B47580F for ; Sat, 10 Aug 2002 14:42:25 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id A4D1A475178 for ; Sat, 10 Aug 2002 14:42:24 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g7AIgDVk007967; Sat, 10 Aug 2002 14:42:13 -0400 (EDT) To: Michael Zouroudis Cc: pgsql-admin@postgresql.org Subject: Re: problem with insertion of serial id In-reply-to: <3D555083.9040402@idealcorp.com> References: <3D555083.9040402@idealcorp.com> Comments: In-reply-to Michael Zouroudis message dated "Sat, 10 Aug 2002 13:42:27 -0400" Date: Sat, 10 Aug 2002 14:42:13 -0400 Message-ID: <7966.1029004933@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/104 X-Sequence-Number: 5219 Michael Zouroudis 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