[why copy ? its not correct working outside static sytax ? ] - Mailing list pgsql-general

From R.Tichy
Subject [why copy ? its not correct working outside static sytax ? ]
Date
Msg-id 3CDB67D8.DA604490@sew-eurodrive.at
Whole thread Raw
Responses Re: [why copy ? its not correct working outside static
List pgsql-general
Hallo, erverybody !

I am working with Postgresql 7.2 on cygwin !

I have this problem inside from Database with functions and inside from
JDBC....

A Example :

create or replace function copy_data (varchar,varchar) returns varchar
as '
declare
  aurl ALIAS FOR $1;
  adelim ALIAS FOR $2;
begin

-- nice its work very fine with static param ...
 copy transimport from  ''/home/usrer/imports/trans.txt'';

 -- where default \t is fieldseparator don't work with params wy ?
 copy transimport from aurl;

 --very very cosmic not for use in copy
 --aurl := ''''''/home/user/imports/trans.txt'''''';
 --raise notice ''killer: %'',aurl;


 return ''ok-master'';

end;
' language 'plpgsql';










pgsql-general by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: newbie - syntax question
Next
From: "R.Tichy"
Date:
Subject: [wy copy dont't work with params]