Re: [PATCH] Bug in XPATH() if expression returns a scalar value
В списке pgsql-hackers по дате отправления:
| От | Peter Eisentraut |
|---|---|
| Тема | Re: [PATCH] Bug in XPATH() if expression returns a scalar value |
| Дата | |
| Msg-id | 1307365019.20678.6.camel@fsopti579.F-Secure.com обсуждение исходный текст |
| Ответ на | Re: [PATCH] Bug in XPATH() if expression returns a scalar value (Florian Pflug <fgp@phlo.org>) |
| Ответы |
Re: [PATCH] Bug in XPATH() if expression returns a scalar value
|
| Список | pgsql-hackers |
On tis, 2011-05-31 at 16:19 +0200, Florian Pflug wrote: > If people deem this to be a problem, we could instead add a separate > function XPATH_VALUE() that returns VARCHAR, and make people use that > for scalar-value-returning expressions. Why not replicate what contrib/xml2 provides, namely xpath_string() xpath_number() xpath_bool() That way, types are preserved. > However, to avoid confusion, > XPATH() should then be taught to raise an error if used for > scalar-value > returning expressions, instead of silently returning an empty array as > it does now. Sounds reasonable.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера