| From: | Uros <uros(at)sir-mag(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | TG_RELNAME problem |
| Date: | 2004-02-25 15:02:40 |
| Message-ID: | 1606519365.20040225160240@sir-mag.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
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(at)sir-mag(dot)com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dave Cramer | 2004-02-25 15:11:57 | Re: Moving from MySQL to PGSQL....some questions |
| Previous Message | Tom Lane | 2004-02-25 15:02:15 | Re: invalid memory alloc request size |