Expose MySQL affected row counts

This commit is contained in:
udo
2026-07-13 07:10:03 +00:00
parent 7281302287
commit d857930ceb
8 changed files with 50 additions and 1 deletions
+1
View File
@@ -202,6 +202,7 @@ static bool mysql_has_unquoted_positional_placeholder(String query);
DValue MySQL::query(String q)
{
affected_rows = 0;
if(mysql_has_unquoted_positional_placeholder(q))
{
_preload_next_error_code = CR_UNKNOWN_ERROR;
+5
View File
@@ -104,3 +104,8 @@ inline u64 mysql_insert_id(MySQL* m)
{
return(m->insert_id);
}
inline u32 mysql_affected_rows(MySQL* m)
{
return(m ? m->affected_rows : 0);
}