pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthias Apitz <guru@unixarea.de>
To: pgsql-general@lists.postgresql.org
Subject: SQL operator '*='
Date: Mon, 23 Dec 2019 15:33:48 +0100
Message-ID: <20191223143348.GA2874@c720-r342378> (raw)


Hello,

I've here a smaller problem of our porting from Sybase/Oracle/Informix
code to PostgreSQL; the code reads for the mentioned DBS:


	...
#ifdef DBSINF
	EXEC SQL DECLARE land_cursor CURSOR FOR
		SELECT stammprio, lkz, landbez, plkz, postbez, karenz1, karenz2,
			karenz3, land.wkz, webez, we, kurs, land.del
		FROM   land, OUTER devisen
		WHERE  land.wkz = devisen.wkz AND land.brgroup = devisen.brgroup AND land.brgroup = :brgroupHost_for_helpland_cursor
		ORDER  BY stammprio, landbez;
#endif

#ifdef DBSORA
	EXEC SQL DECLARE land_cursor CURSOR FOR
		SELECT stammprio, lkz, landbez, plkz, postbez, karenz1, karenz2,
			karenz3, land.wkz, webez, we, kurs, land.del
		FROM   land, devisen
		WHERE  land.wkz = devisen.wkz (+) AND land.brgroup = devisen.brgroup (+) AND land.brgroup = :brgroupHost_for_helpland_cursor
		ORDER  BY stammprio, landbez;
#endif

#ifdef DBSSYB
	EXEC SQL DECLARE land_cursor CURSOR FOR 
		SELECT stammprio, lkz, landbez, plkz, postbez, karenz1, karenz2, 
			karenz3, land.wkz, webez, we, kurs, land.del
		FROM   land, devisen
		WHERE  land.wkz *= devisen.wkz AND land.brgroup *= devisen.brgroup AND land.brgroup = :brgroupHost_for_helpland_cursor
		ORDER  BY stammprio, landbez;
#endif

#ifdef DBSPOS
	EXEC SQL DECLARE land_cursor CURSOR FOR 
		SELECT stammprio, lkz, landbez, plkz, postbez, karenz1, karenz2, 
			karenz3, land.wkz, webez, we, kurs, land.del
		FROM   land, devisen
		WHERE  land.wkz *= devisen.wkz AND land.brgroup *= devisen.brgroup AND land.brgroup = :brgroupHost_for_helpland_cursor
		ORDER  BY stammprio, landbez;
#endif

(the code for DBSPOS was just copied from Sybase). It compiles fine but
raises on execution en error about operator '*=' is not supported...

Any ideas about how to express this correctly in PostgreSQL?

Thanks

	matthias



-- 
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub

"Glaube wenig, hinterfrage alles, denke selbst: Wie man Manipulationen durchschaut"
"Believe little, scrutinise all, think by your own: How see through manipulations"
ISBN-10: 386489218X





view thread (3+ messages)  latest in thread

Message-ID: <20191223143348.GA2874@c720-r342378>
Permalink:  ../20191223143348.GA2874@c720-r342378/
Also on:    postgresql.org/message-id/20191223143348.GA2874@c720-r342378

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: guru@unixarea.de
  Subject: Re: SQL operator '*='
  In-Reply-To: <20191223143348.GA2874@c720-r342378>
  References: <20191223143348.GA2874@c720-r342378>

* 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