You are not logged in.
How to return the number of rows affected from a sql command update or delete?
I would like to use method ExecuteInlined to this.
any help is appreciated
Offline
OK: this method always returned 0...
So I've implemented TSQLDBProxyStatement.UpdateCount as expected.
See https://synopse.info/fossil/info/c2278e8869
Offline
Thanks, I'll check the changes.
Now it works like the example below
client := TSQLDBWinHTTPConnectionProperties.Create('127.0.0.1:8092', 'syndbremote', 'synopse', 'synopse');
updatecount := client.ExecuteInlined('update tablename set field1 = 10 where pkfield=1',[],False).Instance.UpdateCount;
// or
updatecount := client.ExecuteNoResult('update tablename set field1 = 10 where pkfield=1',[]);
Offline