pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Huxton <dev@archonet.com>
Cc: iuri de araujo sampaio <iuri.sampaio@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: sintax error
Date: Fri, 19 Feb 2010 09:28:55 -0500
Message-ID: <2373.1266589735@sss.pgh.pa.us> (raw)
In-Reply-To: <4B7E6E47.5020503@archonet.com>
References: <4B7E4331.1050308@gmail.com>
	<4B7E6E47.5020503@archonet.com>

Richard Huxton <dev@archonet.com> writes:
> I thought it was the PERFORM statements, but it's not. The line number 
> seems right, although the error message is misleading.

FWIW, things are better in HEAD:

regression=# create function foo() returns int as $$
regression$# begin
regression$#   return;
regression$# end$$ language plpgsql;
ERROR:  missing expression at or near ";"
LINE 3:   return;
                ^
regression=# 

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <2373.1266589735@sss.pgh.pa.us>
Permalink:  ../2373.1266589735@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2373.1266589735@sss.pgh.pa.us

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, dev@archonet.com, iuri.sampaio@gmail.com
  Subject: Re: sintax error
  In-Reply-To: <2373.1266589735@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