pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: mlong@datalong.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Function returns error
Date: Thu, 10 Jun 2004 16:38:42 +0100
Message-ID: <40C88082.2070307@archonet.com> (raw)
In-Reply-To: <49717.161.88.255.139.1086879689.squirrel@datalong.com>
References: <37936EEC582B394A9E1AA951991A551604C3C0@dev001_pdc.Dev.cadcorp.net>
	<20040610160627.B1308@hermes.hilbert.loc>
	<49717.161.88.255.139.1086879689.squirrel@datalong.com>

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



view thread (2+ messages)

Message-ID: <40C88082.2070307@archonet.com>
Permalink:  ../40C88082.2070307@archonet.com/
Also on:    postgresql.org/message-id/40C88082.2070307@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, mlong@datalong.com
  Subject: Re: Function returns error
  In-Reply-To: <40C88082.2070307@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox