unplanned sub-select error?

From: Kyle Bateman <kyle(at)actarg(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: unplanned sub-select error?
Date: 2005-11-22 00:37:36
Message-ID: 43826850.1020302@actarg.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I have a query:

insert into mtr_reg_v_wt (ropnum, inum, pnum, rquant, value, status,
ddate, fr_proj, to_proj) values (28985,1,1014,1,(select cost from
prd_part where pnum = 1014),'work','2005-Nov-15',50,75);

That used to work fine under 7.1.3 but now gives the error:

ERROR: cannot handle unplanned sub-select

Anyone know what this means? Is there a good reason why this update
should no longer work? Or is this a bug?

Kyle
wyatterp.com

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2005-11-22 01:10:54 Re: unplanned sub-select error?
Previous Message Bath, David 2005-11-22 00:02:47 Re: idea for a geographically distributed database: how best to implement?