Subject | Can not commit transaction-in ibexpert |
---|---|
Author | sivram_mail <sivaraman@softwareassociate |
Post date | 2003-01-13T14:23:45Z |
Hello,
While commiting the stored procedure, i am getting this error.
Cannot commit transaction:
This column cannot be updated because it is derived from an SQL
function or expression.
attempted update of read-only column.
What is the problem in my stored procedure?
UPDATE BATCHMASTER SET BATCHCST=:BATCHCST,
BATCHMRP=:BATCHMRP,
BATCHSELLINGRATE=:BATCHSELLINGRATE,
BATCHTPS=:BATCHTPS,
EXPIRYDATE=:EXPIRYDATE,
PURCHASECOST=:PURCHASECOST,
STOPBILLING=:STOPBILLING,
BATCHSTOCK=:ORGBATCHSTOCK+:TRANSFERQUANTITY,
EXPIRY=:EXPIRY,BATCHRATE=:BATCHRATE
WHERE BATCHNUMBER=:BATCHNUMBER AND
PRODUCTSERIALNUMBER=:PRODUCTSERIALNUMBER AND
ITEMCODE=:ITEMCODE;
This is the sql in the stored procedure.
Thanks
Sivaraman
While commiting the stored procedure, i am getting this error.
Cannot commit transaction:
This column cannot be updated because it is derived from an SQL
function or expression.
attempted update of read-only column.
What is the problem in my stored procedure?
UPDATE BATCHMASTER SET BATCHCST=:BATCHCST,
BATCHMRP=:BATCHMRP,
BATCHSELLINGRATE=:BATCHSELLINGRATE,
BATCHTPS=:BATCHTPS,
EXPIRYDATE=:EXPIRYDATE,
PURCHASECOST=:PURCHASECOST,
STOPBILLING=:STOPBILLING,
BATCHSTOCK=:ORGBATCHSTOCK+:TRANSFERQUANTITY,
EXPIRY=:EXPIRY,BATCHRATE=:BATCHRATE
WHERE BATCHNUMBER=:BATCHNUMBER AND
PRODUCTSERIALNUMBER=:PRODUCTSERIALNUMBER AND
ITEMCODE=:ITEMCODE;
This is the sql in the stored procedure.
Thanks
Sivaraman