MySQL connection module for Garry's Mod servers - SUP has picked up and maintained the module since it was abandoned years ago - Original author: @bkacjios
Took a few commits but this should fix m_iAffected from being a random floating point.
mysql_stmt_affected_rows seems to be valid within the scope of mysql_stmt_execute and also sometimes it requires to be within mysql_stmt_store_result.
If you want to write it in your own way please do so.
I have not tested if this patch will work as is. You might need to edit a few things still after this.
Took a few commits but this should fix m_iAffected from being a random floating point. mysql_stmt_affected_rows seems to be valid within the scope of mysql_stmt_execute and also sometimes it requires to be within mysql_stmt_store_result.
If you want to write it in your own way please do so.
I have not tested if this patch will work as is. You might need to edit a few things still after this.