SQL error extend 10

We are trying to upgrade to version 10 from I am attempting to perform an update to a table row but am getting a sql error stating "Invalid Descriptor Index", sqlstate 07009. This is the same code that works fine in, any ideas on why I am now getting this error?