SuperiorServers / gm_tmysql4

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
31 stars 7 forks source link

fix m_iAffected #3

Closed darkjacky closed 4 years ago

darkjacky commented 4 years ago

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.