Question

I have used WSO2 Data service to connect to DB for while. All are perfect except that I still couldn't get the affected rows after a SQL update script.

I've go through the wizard and try again and again, and found no solution.

Is there anyone know how to get it?

Thanks any kindly reply in advance.

Was it helpful?

Solution

I'm afraid, there isn't a way to get the updated row count directly, but a possibly work-around would be to wrap your update statements in a stored procedure, and from the stored procedure return the row count as the result, maybe as an OUT parameter.

Cheers, Anjana.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top