| От | Thomas Lockhart |
|---|---|
| Тема | Type resolution for operators |
| Дата | |
| Msg-id | 3A0838CF.9B8B33F2@alumni.caltech.edu обсуждение исходный текст |
| Ответы |
Re: Type resolution for operators
|
| Список | pgsql-hackers |
I've committed changes to parse_oper.c to enable fallback to string type
when argument(s) are of UNKNOWN type. This is the same code (verbatim)
as I recently added for function resolution.
An obvious example is for
select '1' = '01';
which used to throw an error and which now resolves to two text strings
(and returns 'false'). To force these to be handled as integers, prefix
one with the "int" type specifier:
select int '1' = '01';
which, btw, returns 'true'.
Regression tests pass without change (which I guess means that we don't
have good coverage there, either :/
- Thomas
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера