| От | Tom Lane |
|---|---|
| Тема | Re: BUG #5732: parsing of: "WHERE mycol=123AND ..." |
| Дата | |
| Msg-id | 28626.1288310466@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | BUG #5732: parsing of: "WHERE mycol=123AND ..." ("Josh Kupershmidt" <schmiddy@gmail.com>) |
| Ответы |
Re: BUG #5732: parsing of: "WHERE mycol=123AND ..."
|
| Список | pgsql-bugs |
"Josh Kupershmidt" <schmiddy@gmail.com> writes:
> I noticed that Postgres in many cases will happily tokenize WHERE clauses
> having no space between a condition and "AND" or "OR".
This has nothing to do with AND or OR. Any situation where you have
some digits followed by something that can't be part of a number will
be lexed as two separate tokens. I'm not sure we could change that,
because it's a pretty basic aspect of a flex lexer; and even if we
could I'm not eager to face the wrath of all the users whose queries
would break. Leaving out "unnecessary" spaces is a pretty common habit.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера