View Single Post

   
  #5 (permalink)  
Old 04-08-2008, 07:36 PM
Marek Lewczuk
 
Posts: n/a
Default Re: Where is the error

Kaloyan Iliev Iliev napisał(a):
> Hi
> I have the following function:
>
> select int('t'::bool);
> ERROR: syntax error at or near "(" at character 11
>

"int" is reserved for integer type, so you should not use it. However if
you add
namespace before function name "public.int(TRUE)" then it should work.

ML




---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Reply With Quote