MCPcopy Create free account
hub / github.com/MariaDB/server / MYSQL_DML_GET_STAT

Function MYSQL_DML_GET_STAT

sql/sql_select.cc:34827–34842  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34825
34826
34827static void MYSQL_DML_GET_STAT(THD * thd, ha_rows &found, ha_rows &changed)
34828{
34829 switch (thd->lex->sql_command) {
34830 case SQLCOM_UPDATE:
34831 case SQLCOM_UPDATE_MULTI:
34832 case SQLCOM_DELETE_MULTI:
34833 thd->lex->m_sql_cmd->get_dml_stat(found, changed);
34834 break;
34835 case SQLCOM_DELETE:
34836 found= 0;
34837 changed= (thd->get_row_count_func());
34838 break;
34839 default:
34840 DBUG_ASSERT(0);
34841 }
34842}
34843
34844
34845static void MYSQL_DML_DONE(THD *thd, int rc, ha_rows found, ha_rows changed)

Callers 1

executeMethod · 0.85

Calls 2

get_row_count_funcMethod · 0.80
get_dml_statMethod · 0.45

Tested by

no test coverage detected