Expose MySQL affected row counts
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user