1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

fix a case of different linked table name for mrr.

This commit is contained in:
Kentoku SHIBA
2013-09-17 03:19:55 +09:00
parent 74bea98ea5
commit e9d53a384c
10 changed files with 308 additions and 17 deletions

View File

@@ -521,6 +521,8 @@ class spider_mysql_handler: public spider_db_handler
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
SPIDER_DB_HS_STRING_REF_BUFFER hs_upds;
#endif
SPIDER_INT_HLD *union_table_name_pos_first;
SPIDER_INT_HLD *union_table_name_pos_current;
public:
spider_mysql_share *mysql_share;
SPIDER_LINK_FOR_HASH *link_for_hash;
@@ -1249,6 +1251,13 @@ public:
void copy_minimum_select_bitmap(
uchar *bitmap
);
int init_union_table_name_pos();
int set_union_table_name_pos();
int reset_union_table_name(
spider_string *str,
int link_idx,
ulong sql_type
);
};
class spider_mysql_copy_table: public spider_db_copy_table