Re: BUG #3518: ERROR: IN types character varying and integer cannot be matched
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #3518: ERROR: IN types character varying and integer cannot be matched |
| Дата | |
| Msg-id | 27657.1186413460@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | BUG #3518: ERROR: IN types character varying and integer cannot be matched ("Tomasz Kawczynski" <sober.pl@gmail.com>) |
| Список | pgsql-bugs |
"Tomasz Kawczynski" <sober.pl@gmail.com> writes:
> SELECT * FROM s_skladnik WHERE kod IN (902,902)
> ERROR: IN types character varying and integer cannot be matched
> whitch is ok (ive read about this restriction in 8.2.x)
> but why after
> SELECT * FROM s_skladnik WHERE kod IN (902)
> or
> SELECT * FROM s_skladnik WHERE kod = 902
> I dont get error but query gives me correct result ?
This inconsistency will be gone in 8.3:
regression=# select * from t1 where kod = 902;
ERROR: operator does not exist: character varying = integer
LINE 1: select * from t1 where kod = 902;
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
regression=#
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера