Re: Casting problem

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Casting problem
Дата
Msg-id
3826.1005001553@sss.pgh.pa.us
Ответ на
Casting problem (John Burski)
Список
Дерево обсуждения
Re: Casting problem John Burski <John.Burski@911ep.com>
John Burski  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
В списке pgsql-novice по дате отправления
От: Robert J. Sanford, Jr.
Дата:
Сообщение: Re: Book reviews are up
От: Tom Lane
Дата:
FAQ