MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / get_affected_rows

Method get_affected_rows

sql/sql_prepare.h:230–233  ·  view source on GitHub ↗

Get the number of affected (deleted, updated) rows for the current statement. Can be used for statements with get_field_count() == 0. @sa Documentation for C API function mysql_affected_rows(). */

Source from the content-addressed store, hash-verified

228 mysql_affected_rows().
229 */
230 ulonglong get_affected_rows() const
231 {
232 return m_diagnostics_area.affected_rows();
233 }
234
235 /**
236 Get the last insert id, if any.

Callers

nothing calls this directly

Calls 1

affected_rowsMethod · 0.80

Tested by

no test coverage detected