pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Manuel Sugawara <masm@fciencias.unam.mx>
To: Alan Gutierrez <alangutierrez@hotmail.com>
Cc: Bill <bchie@opensys.com.hk>
Cc: pgsql-sql@postgresql.org
Subject: Re: Re: DateDiff, IsNull?
Date: 14 Aug 2001 11:00:07 -0500
Message-ID: <m3u1za1vjs.fsf@dep1.fciencias.unam.mx> (raw)
References: <9lb25o$psq$1@news.tht.net>
	<Pine.WNT.4.33.0108140634400.1680-100000@CX1198465-B>

Alan Gutierrez <alangutierrez@hotmail.com> writes:

[...] 
> Overloading operators? *Please* tell me that this is impossible.

yes, it is :-)

masm=# create function concat (text,text) returns text as 'select $1 || $2 as result' language 'sql' with (iscachable);
CREATE
masm=# create operator + (procedure = concat, leftarg = text, rightarg = text);
CREATE
masm=# select 'Manuel '+'Sugawara';
    ?column?     
-----------------
 Manuel Sugawara
(1 row)

masm=#



view thread (11+ messages)  latest in thread

Message-ID: <m3u1za1vjs.fsf@dep1.fciencias.unam.mx>
Permalink:  ../m3u1za1vjs.fsf@dep1.fciencias.unam.mx/
Also on:    postgresql.org/message-id/m3u1za1vjs.fsf@dep1.fciencias.unam.mx

 · 

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: masm@fciencias.unam.mx, alangutierrez@hotmail.com, bchie@opensys.com.hk
  Subject: Re: Re: DateDiff, IsNull?
  In-Reply-To: <m3u1za1vjs.fsf@dep1.fciencias.unam.mx>

* 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