pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Constantin Teodorescu <teo@flex.ro>
Cc: PostgreSQL Interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: What's wrong in this pltcl function ?
Date: Mon, 14 Oct 2002 10:44:53 -0400
Message-ID: <12329.1034606693@sss.pgh.pa.us> (raw)
In-Reply-To: <3DAAD536.8030603@flex.ro>
References: <3DAA8ADB.6060208@flex.ro>
	<12147.1034605407@sss.pgh.pa.us>
	<3DAAD536.8030603@flex.ro>

Constantin Teodorescu <teo@flex.ro> writes:
> I have replaced:
> ... where id=\'\\$1\'
>       with
> ... where id=\\$1

> and the error is now:
> ERROR:  Unable to identify an operator '=$' for types 'character 
> varying' and 'integer'

Wup, you needed a space:

 ... where id = \\$1

BTW, if id is varchar it would be better to define the function as
accepting varchar not bpchar, no?

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <12329.1034606693@sss.pgh.pa.us>
Permalink:  ../12329.1034606693@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12329.1034606693@sss.pgh.pa.us

 · 

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-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, teo@flex.ro
  Subject: Re: What's wrong in this pltcl function ?
  In-Reply-To: <12329.1034606693@sss.pgh.pa.us>

* 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