Where is the error - Mailing list pgsql-general

From Kaloyan Iliev Iliev
Subject Where is the error
Date
Msg-id 41CFF50F.5080606@faith.digsys.bg
Whole thread Raw
Responses Re: Where is the error
Re: Where is the error
Re: Where is the error
List 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 by date:

Previous
From: Achilleus Mantzios
Date:
Subject: Re: [SQL] Get current trasanction id
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Get current trasanction id