I need to know the number of rows that are inserted/updated/deleted. This function is called 'affected_rows' (in PHP- MySQL)
Apparantly it is missing in Harbour and now I managed to find out how, but still it doesn't work.
Code: Select all
cSQL := "DELETE FROM table WHERE something..." cQuery := dbo:Query( cSQL ) nAFF := dbo:affected_rows() ? 'dbo:className', dbo:className() -->TMYSQLSERVER INSTEAD OF TMy2SQLServer CREATE CLASS TMy2SQLServer INHERIT TMySQLServer METHOD affected_rows() ENDCLASS METHOD affected_rows() CLASS TMy2SQLServer RETURN mysql_affected_rows( ::nSocket )
My knowledge of Classes/Methods is poor. Someone knows whar or how to make it work?