| От | Adam Rich |
|---|---|
| Тема | Re: Confused about CASE |
| Дата | |
| Msg-id | 031401c87b2f$79a401d0$6cec0570$@r@sbcglobal.net обсуждение исходный текст |
| Ответ на | Re: Confused about CASE ("Adam Rich" <adam.r@sbcglobal.net>) |
| Список | pgsql-general |
> "The data types of all the result expressions must be convertible to a > single output type." The type of the field pg_class.relkind appears to be "char" which is described in the notes as: The type "char" (note the quotes) is different from char(1) in that it only uses one byte of storage. It is internally used in the system catalogs as a poor-man's enumeration type. http://www.postgresql.org/docs/8.3/interactive/datatype-character.html But one would expect "char" to be "convertible" to text for the purposes of CASE. Both implicit and explicit cast to text seems to work fine.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера