From: Andreas Gaab <A.Gaab@scanlab.de>
To: pgsql sql <pgsql-sql@postgresql.org>
Subject: replace_matches does not return {null}
Date: Tue, 22 Feb 2011 12:25:03 +0100
Message-ID: <48DA836F3865C54B8FBF424A3B775AF6671A68395D@Exchange-Server> (raw)
Hi,
I tried to order a text-column only by parts of the entries. Therefore I used regexp_matches(), but unfortunately I am loosing rows.
SELECT regexp_matches('abc','[0-9]+'), regexp_matches('123','[0-9]+');
Does not return "{null}, {123}" but no result at all.
Is this behavior expected? How can I work around?
I am running postgres 8.4
Andreas
___________________________________________________________________________
SCANLAB AG
Dr. Andreas Simon Gaab
Entwicklung * R & D
Siemensstr. 2a * 82178 Puchheim * Germany
Tel. +49 (89) 800 746-513 * Fax +49 (89) 800 746-199
mailto:a.gaab@scanlab.de * www.scanlab.de<http://www.scanlab.de;
Amtsgericht München: HRB 124707 * USt-IdNr.: DE 129 456 351
Vorstand: Georg Hofner (Sprecher), Christian Huttenloher, Norbert Petschik
Aufsichtsrat (Vorsitz): Dr. Hans J. Langer
___________________________________________________________________________
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: A.Gaab@scanlab.de
Subject: Re: replace_matches does not return {null}
In-Reply-To: <48DA836F3865C54B8FBF424A3B775AF6671A68395D@Exchange-Server>
* 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