Re: [PORTS] Port Bug Report: int2 negative numbers not parsed correctly
В списке pgsql-hackers по дате отправления:
| От | Thomas G. Lockhart |
|---|---|
| Тема | Re: [PORTS] Port Bug Report: int2 negative numbers not parsed correctly |
| Дата | |
| Msg-id | 3521C17A.5EFBE27F@alumni.caltech.edu обсуждение |
| Ответ на | Re: [PORTS] Port Bug Report: int2 negative numbers not parsed correctly (Bruce Momjian <maillist@candle.pha.pa.us>) |
| Ответы |
Re: [PORTS] Port Bug Report: int2 negative numbers not parsed correctly
|
| Список | pgsql-hackers |
> I am confused. As I can tell, these are coming in as null_expr - 1. What is "null_expr - 1"? I think that is the same thing; a node with a subtraction operator and the left side set to null and the right side set to a constant node. That's what I meant by the unary minus on a constant. > Why can't we do a check in gram.y,... Well we maybe can, but it sure is ugly. This will be spread around a bunch of places (everywhere there is a unary minus allowed). I already did the wrong thing and brute-forced something similar into the CREATE SEQUENCE code in gram.y. Isolating it in transform_expr() or somewhere like that would be much cleaner.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера