RE: [GENERAL] Problem with 6.5 reload

From: Glen and Rosanne Eustace <agree(at)godzone(dot)net(dot)nz>
To: pgsql-general <pgsql-general(at)postgreSQL(dot)org>
Subject: RE: [GENERAL] Problem with 6.5 reload
Date: 1999-04-13 19:33:51
Message-ID: 000901be85e4$8ff3a660$0101a8c0@agree-1.godzone.net.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have had no replies on this topic.

The SQL below was dumped from my 6.3.1 db and in 6.3.1 it works fine.
However the 6.5b1 psql complains that there is something wrong with the
syntax.

I have looked at \? create function, an it looks OK to me.

Can someone simply try it on another 6.5 installation to see if it fails
for you as well.

I am guessing with all the recent enhancements, the syntax has either
changed and the Docs haven't or the parser is broken.

> -----Original Message-----
CREATE FUNCTION next_target ( )
RETURNS int4 AS
'update global set next_target=next_target+1;select
next_target from global'
LANGUAGE 'SQL';

ERROR: parser: parse error at or near ""

Thanks.
--
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Glen Eustace, on behalf of
GodZone Internet Services, a division of AGRE Enterprises Limited.
176 Te Awe Awe St, Palmerston North, New Zealand
Ph: +64 6 356 2562, Fax: +64 6 357 0271, Mobile: 025 416 184,
http://WWW.GodZone.Net.NZ

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brett W. McCoy 1999-04-13 19:50:04 Re: [GENERAL] Opening two databases at the same time?
Previous Message Deniz Yuret 1999-04-13 16:58:45 memory hungry postgres process