Hello ,
When i use TG_RELNAME with SELECT INTO and from
Create or replace function "fn_i_generate_path_category"() returns trigger as '
declare
n integer;
category RECORD;
tmp RECORD;
begin
raise notice ''%'',TG_RELNAME;
if new."path" = '''' then
SELECT INTO tmp "id_category" from TG_RELNAME where "path" = ''Top'';
if FOUND then
...............
When function is started i get error:
ERROR: syntax error at or near "$1" at character 29
What can I do
--
Best regards,
Uros mailto:uros@sir-mag.com