Thanks , Zoran.
But it can't help, i alway get back -1.
I think this is a failure of SQLDB component set. (i studied the source code of SQLDB.)
It isn't a bug , it is "only" reduced ability of SQLDB.
You can use it with "Repeatable Read" isolation level, but you mustn't use it "ReadCommited"
isolation level. (lost update)
ZEOS : raise an exception if affected rows is 0
IBX : you can read rowsaffected after delete,insert , update.
IBDataset1.QModify.RowsAffected
IBDataset1.QInsert.RowsAffected
IBDataset1.QDelete.RowsAffected
Thanks, for your kind
Attila Kovács