From: | Joe Conway <mail(at)joeconway(dot)com> |
---|---|
To: | David Shadovitz <david_shadovitz(at)xontech(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: CHAR vs TEXT args |
Date: | 2003-08-28 05:11:28 |
Message-ID: | 3F4D8F00.3090800@joeconway.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
David Shadovitz wrote:
> I intended to call the CHAR-signature function like this:
> SELECT ABC('R');
>
> And the TEXT-signature function like this:
> SELECT ABC('Right');
>
> But I found that both calls invoke the TEXT-signature function. So is
> there any distinction between CHAR and TEXT? Can I somehow specify
> that the argument 'R' is to be treated as a CHAR, so the
> CHAR-signature version of ABC is executed?
If you want to force the CHAR version, do something like:
SELECT ABC('R'::char);
HTH,
Joe
From | Date | Subject | |
---|---|---|---|
Next Message | Barry Lind | 2003-08-28 05:11:45 | Re: FATAL: Socket command type A unknown |
Previous Message | Joe Conway | 2003-08-28 05:06:40 | Re: Functions have 32 args limt ??? |