pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Justine.Cleary@c1data.com
Cc: pgsql-sql@postgresql.org
Subject: Re: missing... at end of sql expression
Date: Sun, 21 Nov 2004 20:03:33 -0500
Message-ID: <1449.1101085413@sss.pgh.pa.us> (raw)
In-Reply-To: <07CF70EF155E0F46B8C658298805581DD2E264@srvexchcheyenne.c1data.com>
References: <07CF70EF155E0F46B8C658298805581DD2E264@srvexchcheyenne.c1data.com>

Justine.Cleary@c1data.com writes:
> I am trying to learn pspgsql but I am not having a lot of luck.
 
> I have written a function but I keep getting the error missing... at end of
> sql expression. Can anyone help!

What it's really unhappy about is that you failed to declare the FOR
variable; this is causing it to assume that the FOR is the integer
variant (FOR i IN low .. high).

The error message is pretty confusing, I agree.  I think 8.0 will
do better.

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <1449.1101085413@sss.pgh.pa.us>
Permalink:  ../1449.1101085413@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1449.1101085413@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, Justine.Cleary@c1data.com
  Subject: Re: missing... at end of sql expression
  In-Reply-To: <1449.1101085413@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