Postgres plpgsql

From: Shaun Clements <ShaunC(at)relyant(dot)co(dot)za>
To: pgsql-general(at)postgresql(dot)org
Subject: Postgres plpgsql
Date: 2005-03-30 13:41:52
Message-ID: 100F78F2B203444BB161BBA7077FF6131CD9B2@srldbexc003.relyant.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Im finding a problem with updating in PGPLSQL
Can anyone find anything wrong with this code below. It appears Postgres
isnt picking up a change in the dynamic first column. So the same column is
being updated.
.
<snip>
EXECUTE ''UPDATE TABLENAME SET
''||quote_ident(variable1)||''=''||quote_literal(Variable2)||'' where
columnname1 =''||quote_literal(variable3)||'' and columnname2 =
''||quote_literal(variable4)||'' and month = ''''07'''' and year =
''''2004'''''';
</snip>

There is clearly a need for a debugging facility.

Kind Regards,
Shaun Clements

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2005-03-30 13:56:01 Re: Postgres plpgsql
Previous Message Gordan Bobic 2005-03-30 11:47:19 Re: Drivers for Other Languages