| От | Peter Eisentraut |
|---|---|
| Тема | Implicit casts with generic arrays |
| Дата | |
| Msg-id | 200702271905.42407.peter_e@gmx.net обсуждение |
| Ответы |
Re: Implicit casts with generic arrays
|
| Список | pgsql-hackers |
I've looked into cutting back on the implicit casts to text, which
exposed the following little gem.
The expressions
'abc' || 34
34 || 'abc'
would no longer work, with the following error message:
ERROR: 22P02: array value must start with "{" or dimension information
That's because the best matches are now respectively
anyarray || anyelement
anyelement || anyarray
Now either this is just too bad and users of a system with reduced casts
to text will have to live with this odd error message, or coercing any
old unknown constant to anyarray isn't such a good idea.
Comments?
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера