From: Yusuf <yusufad@myrealbox.com>
To: pgsql-sql@postgresql.org
Subject: Re: Can't convert numeric to_char() in catenate function
Date: Thu, 16 Oct 2003 17:26:06 -0600
Message-ID: <1066346766.8551e800yusufad@myrealbox.com> (raw)
I 'must' quote the quotes. I 'must' quote the quotes. I 'must' quote the quotes. I 'must' quote the quotes. I 'must' quote the quotes. I 'must' quote the quotes. I 'must' quote the quotes.
DANG!!
I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes.
Err, sorry about that, I'm trying to keep something in my mind. I just wanted to tell ya to forget my previous mail, I got it (tipical) just after sending it:
CREATE OR REPLACE FUNCTION "verticat" (text, numeric) RETURNS text AS '
SELECT CASE WHEN $2 IS NULL THEN $1
WHEN $1 IS NULL OR $1 = ''''
THEN ltrim('' '', to_char($2,''999999999D99''))
ELSE $1 || '', '' || ltrim('' '', to_char($2,''99999999D99''))
END
' LANGUAGE 'sql';
Ciao.
I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes. I ''must'' quote the quotes...
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: yusufad@myrealbox.com
Subject: Re: Can't convert numeric to_char() in catenate function
In-Reply-To: <1066346766.8551e800yusufad@myrealbox.com>
* 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