pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Leif Biberg Kristensen <leif@solumslekt.org>
To: pgsql-sql@postgresql.org
Subject: Re: How to convert SQL store procedure to Postgresql function
Date: Tue, 28 Feb 2012 13:22:56 +0100
Message-ID: <201202281322.56490.leif@solumslekt.org> (raw)
In-Reply-To: <1330430206.16326.YahooMailNeo@web121606.mail.ne1.yahoo.com>
References: <1330419004.47440.YahooMailNeo@web121602.mail.ne1.yahoo.com>
	<CAP_rwwmWSh2o0hbatj+dFL1r612jg_B+oSf6qM02GtJM-dW24Q@mail.gmail.com>
	<1330430206.16326.YahooMailNeo@web121606.mail.ne1.yahoo.com>

 Tirsdag 28. februar 2012 12.56.46 skrev Rehan Saleem :
> hi ,
> whats wrong with this function , i am getting syntax error which is syntax
> error at or near "+=" LINE 13:  set sql += ' bpoverlap, centredistance

You can't concatenate that way in plpgsql. Instead of "set sql +=" try with 
just "||" which is the operator joining two strings.

regards, Leif
http://code.google.com/p/yggdrasil-genealogy/



view thread (5+ messages)

Message-ID: <201202281322.56490.leif@solumslekt.org>
Permalink:  ../201202281322.56490.leif@solumslekt.org/
Also on:    postgresql.org/message-id/201202281322.56490.leif@solumslekt.org

 · 

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: leif@solumslekt.org
  Subject: Re: How to convert SQL store procedure to Postgresql function
  In-Reply-To: <201202281322.56490.leif@solumslekt.org>

* 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