Re: incorrect syntax for 'plpgsql' function to test boolean values

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: incorrect syntax for 'plpgsql' function to test boolean values
Дата
Msg-id 9F3785BD-3C92-47DE-B340-0C4572F1ACCB@pgedit.com
обсуждение исходный текст
Ответ на incorrect syntax for 'plpgsql' function to test boolean values  (Ferindo Middleton Jr <fmiddleton@verizon.net>)
Ответы Re: incorrect syntax for 'plpgsql' function to test boolean  (Ferindo Middleton Jr <fmiddleton@verizon.net>)
Список pgsql-sql
On Aug 6, 2005, at 10:52 PM, Ferindo Middleton Jr wrote:

> ERROR:  operator does not exist: boolean == boolean
> HINT:  No operator matches the given name and argument type(s). You  
> may need to add explicit type casts.
> CONTEXT:  SQL statement "SELECT  (( $1  == true) && ( $2  == true))"
> PL/pgSQL function  
> "trigger_insert_update_registration_and_attendance" line 13 at if
>
> What is wrong with my syntax above?
>

Too much C programming :). You just want a single equal sign.

select true = true;
?column?
----------
t
(1 row)




John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL



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

Предыдущее
От: Ferindo Middleton Jr
Дата:
Сообщение: incorrect syntax for 'plpgsql' function to test boolean values
Следующее
От: Ferindo Middleton Jr
Дата:
Сообщение: Re: incorrect syntax for 'plpgsql' function to test boolean