1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2026-01-06 08:21:10 +03:00

MCOL-3529 This patch implements direct_update and direct_delete features

to properly report the number of rows affected by UPDATE|DELETE.
This commit is contained in:
Roman Nozdrin
2019-11-27 09:33:21 -06:00
parent 449b51defe
commit 5cedeb110b
5 changed files with 73 additions and 86 deletions

View File

@@ -143,12 +143,6 @@ public:
*/
void start_bulk_insert(ha_rows rows, uint flags = 0) ;
/** @brief
We implement this in ha_example.cc. It's not an obligatory method;
skip it and and MySQL will treat it as not implemented.
*/
int end_bulk_insert(bool abort) ;
/**@bug 2461 - Overloaded end_bulk_insert. MariaDB uses the abort bool, mysql does not. */
int end_bulk_insert() ;
@@ -157,12 +151,16 @@ public:
skip it and and MySQL will treat it as not implemented.
*/
int update_row(const uchar* old_data, uchar* new_data);
int direct_update_rows_init(List<Item> *update_fields);
int direct_update_rows(ha_rows *update_rows);
/** @brief
We implement this in ha_example.cc. It's not an obligatory method;
skip it and and MySQL will treat it as not implemented.
*/
int delete_row(const uchar* buf);
int direct_delete_rows_init();
int direct_delete_rows(ha_rows *deleted_rows);
/** @brief
We implement this in ha_example.cc. It's not an obligatory method;