Re: [GENERAL] need help with plpgsql execute insert

2006-12-21 Thread developer
> [EMAIL PROTECTED] wrote: >>> I believe you are wrong. the EXECUTE is being given 11 columns, it >>> expects 1. I think you need to form your execute query like; >>> >>> EXECUTE 'INSERT INTO payment ( >>> id,amount,accepted_date, company_id , date , >>> patient_responsible_party_id patient_c

Re: [GENERAL] need help with plpgsql execute insert

2006-12-21 Thread Richard Huxton
[EMAIL PROTECTED] wrote: I believe you are wrong. the EXECUTE is being given 11 columns, it expects 1. I think you need to form your execute query like; EXECUTE 'INSERT INTO payment ( id,amount,accepted_date, company_id , date , patient_responsible_party_id patient_contact_responsible_part

Re: [GENERAL] need help with plpgsql execute insert

2006-12-20 Thread developer
> [EMAIL PROTECTED] wrote: >> I am trying to loop through some data and then run insert some of the >> resulting data into a new table. I can create the function but when I >> run >> it i get the error: >> >> ERROR: query "SELECT 'INSERT INTO payment ( >> id,amount,accepted_date, company_id , d

Re: [GENERAL] need help with plpgsql execute insert

2006-12-20 Thread developer
> On Wednesday 20 December 2006 7:36 pm, [EMAIL PROTECTED] wrote: >> I am trying to loop through some data and then run insert some of the >> resulting data into a new table. I can create the function but when I >> run >> it i get the error: >> >> ERROR: query "SELECT 'INSERT INTO payment ( >> id

Re: [GENERAL] need help with plpgsql execute insert

2006-12-20 Thread Russell Smith
[EMAIL PROTECTED] wrote: I am trying to loop through some data and then run insert some of the resulting data into a new table. I can create the function but when I run it i get the error: ERROR: query "SELECT 'INSERT INTO payment ( id,amount,accepted_date, company_id , date , patient_respon

Re: [GENERAL] need help with plpgsql execute insert

2006-12-20 Thread Adrian Klaver
On Wednesday 20 December 2006 7:36 pm, [EMAIL PROTECTED] wrote: > I am trying to loop through some data and then run insert some of the > resulting data into a new table. I can create the function but when I run > it i get the error: > > ERROR: query "SELECT 'INSERT INTO payment ( > id,amount,acc