What is wrong?
| От | Wei Weng |
|---|---|
| Тема | What is wrong? |
| Дата | |
| Msg-id | 1001706359.11935.4.camel@Monet обсуждение исходный текст |
| Ответы |
Re: What is wrong?
Entering data in serial column |
| Список | pgsql-sql |
Hi there. I wrote a simple postgresql sql function as follows:
create function test() returns integer as '
begin
fixed_path := translate (''/text'', ''\\'', ''/'');
raise notice ''fixed_path:'', fixed_path;
return 1;
end
' language 'plpgsql';
And when I ran it as
pgsql>select test();
I got:
NOTICE: plpgsql: ERROR during compile of test near line 8
ERROR: unterminated string starting on line 10
What is wrong? (something fishy about translate function?) Could anyone
enlighten me on this?
Thank you very much!
Wei
В списке pgsql-sql по дате отправления: