Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group