Commit edfb639e authored by Will DeVries's avatar Will DeVries Committed by Sergei Petrunia

Add found_rows parameter to direct_update_rows.

parent c8600532
......@@ -554,7 +554,7 @@ int ha_clustrixdb::direct_update_rows_init(List<Item> *update_fields)
DBUG_RETURN(0);
}
int ha_clustrixdb::direct_update_rows(ha_rows *update_rows)
int ha_clustrixdb::direct_update_rows(ha_rows *update_rows, ha_rows *found_rows)
{
DBUG_ENTER("ha_clustrixdb::direct_update_rows");
int error_code= 0;
......@@ -570,6 +570,7 @@ int ha_clustrixdb::direct_update_rows(ha_rows *update_rows)
trx->auto_commit_next();
error_code = trx->update_query(update_stmt, table->s->db, update_rows);
*found_rows = *update_rows;
DBUG_RETURN(error_code);
}
......
......@@ -72,7 +72,7 @@ class ha_clustrixdb : public handler
// start_bulk_delete exec_bulk_delete
int delete_row(const uchar *buf);
int direct_update_rows_init(List<Item> *update_fields);
int direct_update_rows(ha_rows *update_rows);
int direct_update_rows(ha_rows *update_rows, ha_rows *found_rows);
void start_bulk_insert(ha_rows rows, uint flags = 0);
int end_bulk_insert();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment