Where is the error

Поиск
Список
Период
Сортировка
От Kaloyan Iliev Iliev
Тема Where is the error
Дата
Msg-id 41CFF50F.5080606@faith.digsys.bg
обсуждение исходный текст
Ответы Re: Where is the error
Re: Where is the error
Re: Where is the error
Список pgsql-general
Hi
  I have the following function:

CREATE OR REPLACE FUNCTION "int" (boolean) RETURNS integer AS'
select CASE WHEN $1 THEN 1
ELSE 0
END
'LANGUAGE 'sql';

When I try to use it:

select int('t'::bool);
ERROR:  syntax error at or near "(" at character 11

I am using PG8.0b1

Thank you.

      Kaloyan



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

Предыдущее
От: Achilleus Mantzios
Дата:
Сообщение: Re: [SQL] Get current trasanction id
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Get current trasanction id