CASE w/out ELSE hides typmod (was: How define a view that use a case operator for geometry field)
В списке pgsql-hackers по дате отправления:
| От | Sandro Santilli |
|---|---|
| Тема | CASE w/out ELSE hides typmod (was: How define a view that use a case operator for geometry field) |
| Дата | |
| Msg-id | 20111028204737.GO7317@gnash обсуждение исходный текст |
| Ответы |
Re: CASE w/out ELSE hides typmod (was: How define a view that use a case operator for geometry field)
|
| Список | pgsql-hackers |
On Fri, Oct 28, 2011 at 10:33:45PM +0200, aperi2007 wrote: > Seem that postgis try to define it an else condition assigning it a > unknown "geometry" ? It's PostgreSQL, not PostGIS. The same happens with any type, can be reproduced with something like this: =# CREATE VIEW test1 AS SELECT CASE WHEN random() < 0.5 THEN 1::numeric(10, 0) END; =# \d test1 View "test.test1"Column | Type | Modifiers --------+---------+-----------case | numeric | =# CREATE VIEW test2 AS SELECT CASE WHEN random() < 0.5 THEN 1::numeric(10, 0) ELSE 0::numeric(10, 0) END; =# \d test2 View "test.test2"Column | Type | Modifiers --------+---------------+-----------case | numeric(10,0) | Maybe someone on pgsql-hackers can tell us more about this. --strk; () Free GIS & Flash consultant/developer /\ http://strk.keybit.net/services.html
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера