Hi My biggest bugbear with Postgresql is the double quoting when writing functions. Has anyone suggested a possible syntax such as :- create or replace function sp_AddContact(varchar) returns integer from '<filename>' LANGUAGE 'plpgsql'; This would remove the issue with parsing for begin...ends (or whatever the language was using) Just a thought Kieran
Kieran McCusker wrote: > Hi > > My biggest bugbear with Postgresql is the double quoting when writing > functions. Has anyone suggested a possible syntax such as :- > > create or replace function sp_AddContact(varchar) > returns integer from '<filename>' LANGUAGE 'plpgsql'; No, but in the near future with 8.0 version you can: create or replace function sp_AddContact(varchar) returns integer AS $$ DECLARE a ALIAS FOR $1; BEGINRAISE NOTICE 'look at this string'; return 0; END; $$ LANGUAGE 'plpgsql'; Regards Gaetano Mendola
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера