Re: Casting problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: John Burski <John(dot)Burski(at)911ep(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Casting problem
Date: 2001-11-05 23:05:53
Message-ID: 3826.1005001553@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

John Burski <John(dot)Burski(at)911ep(dot)com> writes:
> clocker=# DELETE FROM employee_tbl WHERE emp_id = '1119';
> ERROR: Unable to identify an operator '=' for types 'varchar' and 'bpchar'
> You will have to retype this query using an explicit cast

I'll bet you have a foreign-key constraint referencing this table,
and the other column is varchar not char. 7.1 detects unexecutable
FK constraints when you try to create one, but 7.0 didn't, IIRC.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Andrew McMillan 2001-11-06 01:54:47 Re: looking for an easier way to update
Previous Message Tom Lane 2001-11-05 23:00:34 Re: Installing 7.1.3 is missing libssl.0.1