| От | Tom Lane |
|---|---|
| Тема | Re: Postgres 9 alpha 5 revised, stored proc |
| Дата | |
| Msg-id | 11630.1270690448@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Postgres 9 alpha 5 revised, stored proc (Andy Colson <andy@squeakycode.net>) |
| Ответы |
Re: Postgres 9 alpha 5 revised, stored proc
|
| Список | pgsql-general |
Andy Colson <andy@squeakycode.net> writes: > I have this stored proc that works in pg 8.4. > create or replace function roundts(ts timestamp) returns timestamp as $$ > declare > tmp integer; > result timestamp; > offset interval; OFFSET is a reserved word: http://developer.postgresql.org/pgdocs/postgres/sql-keywords-appendix.html Older versions of plpgsql didn't have quite the same rules about reserved words as the main SQL parser. In 9.0 the rules are much more nearly the same; in particular, unquoted use of reserved words won't work. regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера