| От | Tom Lane |
|---|---|
| Тема | Re: DELETE FROM error |
| Дата | |
| Msg-id | 5218.1027001822@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | DELETE FROM error ("Daniel Bakken" <dan@smtresource.com>) |
| Список | pgsql-general |
"Daniel Bakken" <dan@smtresource.com> writes:
> When running the following DELETE FROM in psql,
> omni=# DELETE FROM inventory WHERE invid = '01044T';
> ERROR: Unable to identify an operator '=' for types 'varchar' and 'bpchar'
> You will have to retype this query using an explicit cast
If this is not a recent version of Postgres, I'd wonder about incorrect
foreign key constraints involving this table --- ie, an attempt to
REFERENCE a varchar field from a bpchar field or vice versa. 7.2 will
complain about that when you try to define the FK constraint, but older
versions won't notice until the FK constraint actually tries to do some
comparisons.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера