"It'd be better if there were not an implicit cast from int8 to text..."
В списке pgsql-hackers по дате отправления:
| От | Gregory Stark |
|---|---|
| Тема | "It'd be better if there were not an implicit cast from int8 to text..." |
| Дата | |
| Msg-id | 87tzqwsv2p.fsf@oxford.xeocode.com обсуждение исходный текст |
| Ответы |
Re: "It'd be better if there were not an implicit cast from int8 to text..."
|
| Список | pgsql-hackers |
Hm, I suppose this "kluge" in gram.y for "substr_list" isn't necessary any
more? Don't really see a downside to leaving it, just thought I would mention
it since I noticed the comment is outdated.
| a_expr substr_for { /* * Since there are no cases where this syntax allows * a textual
FORvalue, we forcibly cast the argument * to int4. This is a kluge to avoid surprising results * when
theargument is, say, int8. It'd be better if * there were not an implicit cast from int8 to text ...
*/ A_Const *n = makeNode(A_Const); n->val.type = T_Integer; n->val.val.ival = 1; $$ =
list_make3($1,(Node *) n, makeTypeCast($2, SystemTypeName("int4"))); }
-- Gregory Stark EnterpriseDB http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера