Re: Function returns error

From: Richard Huxton <dev(at)archonet(dot)com>
To: mlong(at)datalong(dot)com
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Function returns error
Date: 2004-06-10 15:38:42
Message-ID: 40C88082.2070307@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2004-06-10 15:40:58 Re: Schema + User-Defined Data Type Indexing problems...
Previous Message Michael Long 2004-06-10 15:01:29 Function returns error