Re: What's wrong in this pltcl function ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Constantin Teodorescu <teo(at)flex(dot)ro>
Cc: PostgreSQL Interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: What's wrong in this pltcl function ?
Date: 2002-10-14 14:44:53
Message-ID: 12329.1034606693@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Constantin Teodorescu <teo(at)flex(dot)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

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Constantin Teodorescu 2002-10-14 14:50:45 Re: What's wrong in this pltcl function ?
Previous Message Constantin Teodorescu 2002-10-14 14:34:47 Re: What's wrong in this pltcl function ?