| От | Hermann Muster |
|---|---|
| Тема | Order of SUBSTR and UPPER in statement |
| Дата | |
| Msg-id | fov1p9$1l93$1@news.hub.org обсуждение исходный текст |
| Ответы |
Re: Order of SUBSTR and UPPER in statement
Re: Order of SUBSTR and UPPER in statement |
| Список | pgsql-general |
Hi,
I encountered something I can't really explain. I use the following
statement in my application:
COALESCE(UPPER(SUBSTR("Y"."Firma",1,7)),'')
This returns "ERROR: syntax error at end of input"
However, using the following statement is fine:
COALESCE(SUBSTR(UPPER("X"."Firma"), 1, 7), '')
The fieldtype of "Firma" is character varying.
The only difference is the order of UPPER and SUBSTR. Is it possible
that this changed during some PostgreSQL version update? By the way,
right now I'm using 8.2.
Regards,
Hermann
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера