SQL error extend 10

We are trying to upgrade to version 10 from 8.1.3.1. 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 8.1.3.1, any ideas on why I am now getting this error?

Thanks

David