SELECT Field1 || Field2 FROM Table

From: Jean-Michel POURE <jm(dot)poure(at)freesurf(dot)fr>
To: pgsql-hackers(at)postgresql(dot)org
Subject: SELECT Field1 || Field2 FROM Table
Date: 2001-06-13 14:37:16
Message-ID: 4.2.2.20010613162915.00aa1ef0@smtp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello all,

I have PostgreSQL 7.1.1 installed on a RedHat 7.1 server.

When running the following query "SELECT Field1 || Field2 AS Result FROM Table"
the result is NULL when Field2 is NULL.

Same as if I use a PL/pgSQL function to concatenate Filed 1 || Field2.

Did I miss something?

Regards,
Jean-Michel POURE, pgAdmin development team

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Darren Johnson 2001-06-13 14:44:11 Re: AW: AW: AW: Postgres Replication
Previous Message Bruce Momjian 2001-06-13 14:08:37 Re: Patch to include PAM support...