Search Postgresql Archives

Re: how to use a cursor for update?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



=?ISO-8859-1?Q?nicola_zandon=E0?= <nick.zando@xxxxxxxxx> writes:
> When i try to execute this code i get a :

> ERROR:  cursor "cur" is not a simply updatable scan of table "zone"
> CONTEXT:  SQL statement "UPDATE zone SET end_period =  $1  WHERE  
> CURRENT OF  $2 "
> PL/pgSQL function "test_select" line 16 at SQL statement

The example works for me, using a simple definition of the "zone"
table.  Maybe your "zone" is not a table but a complicated view?

Or it could be a bug that's been fixed.  What PG version are you using?

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux