Where is the error

From: Kaloyan Iliev Iliev <news1(at)faith(dot)digsys(dot)bg>
To: pgsql-general(at)postgresql(dot)org
Subject: Where is the error
Date: 2004-12-27 11:42:07
Message-ID: 41CFF50F.5080606@faith.digsys.bg
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2004-12-27 12:07:07 Re: Get current trasanction id
Previous Message Achilleus Mantzios 2004-12-27 10:38:33 Re: [SQL] Get current trasanction id