Re: Function returns error

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Function returns error
Дата
Msg-id 40C88082.2070307@archonet.com
обсуждение исходный текст
Ответ на Function returns error  ("Michael Long" <mlong@datalong.com>)
Список pgsql-sql
Michael Long wrote:
> ERROR:  operator does not exist: character varying == "unknown"
> HINT:  No operator matches the given name and argument type(s). You may need to add
> explicit type casts.
> CONTEXT:  PL/pgSQL function "building_insert" line 14 at if

Common mistake, still make it myself on occasion. The '==' operator 
doesn't exist in plpgsql, you should use '=' when comparing and ':=' for 
assignment.

HTH
--   Richard Huxton  Archonet Ltd


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Schema + User-Defined Data Type Indexing problems...
Следующее
От: Franco Bruno Borghesi
Дата:
Сообщение: Re: query optimization