pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Emils Klotins <emils@mail.usis.bkc.lv>
To: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] date_part - multiple values in format?
Date: Fri, 3 Mar 2000 10:51:46 +0200
Message-ID: <200003030849.KAA18344@omega.bkc.lv> (raw)
In-Reply-To: <8873.952011963@sss.pgh.pa.us>
References: <200003021508.RAA08695@omega.bkc.lv>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[2 Mar 00,, 10:46] Tom Lane wrote:

> "Emils Klotins" <emils@mail.usis.bkc.lv> writes:
> > Will there be a possibility of string concatenation in 7.x so that 
> > I don't have to put all the concats in brackets? (ie. currently I 
> > have to: ((((X || Y) || Z ) || A) || B) 
> > which is of course also rather clumsy and leads to lots of 
> > typos in case of more complex expressions.
> What?
> regression=# select 'a'::text || 'b'::text || 'c'::text;
>  ?column?
> ----------
>  abc
> (1 row)
> 6.5.3 behaves the same ...

Sorry about that. I don't remember at which version I did have 
to use the form of concatenation I mentioned (6.4.x? 6.5.2?), 
but yes, 6.5.3 seems to work fine without brackets.

Emils

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.2 -- QDPGP 2.61a
Comment: http://community.wow.net/grt/qdpgp.html

iQA/AwUBOL9gcN0sxa1MAPWHEQL0cwCdEvOCrVXWN6sETUkFQhxrIocwRv8AoIM5
d7tOGK/m8JJkbJ7seNk35ohk
=yLXB
-----END PGP SIGNATURE-----



view thread (3+ messages)

Message-ID: <200003030849.KAA18344@omega.bkc.lv>
Permalink:  ../200003030849.KAA18344@omega.bkc.lv/
Also on:    postgresql.org/message-id/200003030849.KAA18344@omega.bkc.lv

 · 

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-sql@postgresql.org
  Cc: emils@mail.usis.bkc.lv
  Subject: Re: [SQL] date_part - multiple values in format?
  In-Reply-To: <200003030849.KAA18344@omega.bkc.lv>
  References: <200003021508.RAA08695@omega.bkc.lv> <200003030849.KAA18344@omega.bkc.lv>

* 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