Re: CHAR vs TEXT args

Поиск
Список
Период
Сортировка
От Dennis Gearon
Тема Re: CHAR vs TEXT args
Дата
Msg-id 3F4E0A1E.6050500@fireserve.net
обсуждение исходный текст
Ответ на CHAR vs TEXT args  (david_shadovitz@xontech.com (David Shadovitz))
Список pgsql-general
David Shadovitz wrote:

>I've created two PL/pgSQL functions with the same name and different
>signatures:
>
>CREATE FUNCTION ABC(CHAR) ...
>CREATE FUNCTION ABC(TEXT) ....
>
>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.
>

maybe you need to do this:

SELECT ABC('R':TEXT);
SELECT ABC('Right':CHAR);




В списке pgsql-general по дате отправления:

Предыдущее
От: Chris Webster
Дата:
Сообщение: Re: Books for PostgreSQL?
Следующее
От: Dennis Gearon
Дата:
Сообщение: Re: Books for PostgreSQL?