1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

SQL: create..select revisited [closes #370]

This commit is contained in:
Aleksey Midenkov
2017-12-12 21:30:49 +03:00
committed by GitHub
parent a0e137c4a9
commit 459f40a232
17 changed files with 619 additions and 346 deletions

View File

@ -5062,6 +5062,7 @@ class select_insert :public select_result_interceptor {
ulonglong autoinc_value_of_last_inserted_row; // autogenerated or not
COPY_INFO info;
bool insert_into_view;
bool versioned_write;
select_insert(THD *thd_arg, TABLE_LIST *table_list_par,
TABLE *table_par, List<Item> *fields_par,
List<Item> *update_fields, List<Item> *update_values,
@ -5122,6 +5123,12 @@ public:
const THD *get_thd(void) { return thd; }
const HA_CREATE_INFO *get_create_info() { return create_info; };
int prepare2(void) { return 0; }
private:
TABLE *create_table_from_items(THD *thd,
List<Item> *items,
MYSQL_LOCK **lock,
TABLEOP_HOOKS *hooks);
};
#include <myisam.h>