Navigation Menu

Skip to content

Commit

Permalink
mariadb10.3: follow TABLE_LIST::db type change
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 25, 2018
1 parent 2e73dd1 commit 09d6a87
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions mrn_table.cpp
Expand Up @@ -1077,8 +1077,15 @@ TABLE_SHARE *mrn_create_tmp_table_share(TABLE_LIST *table_list, const char *path
char key[MAX_DBKEY_LENGTH];
key_length = create_table_def_key(thd, key, table_list, FALSE);
#endif
#if MYSQL_VERSION_ID >= 100002 && defined(MRN_MARIADB_P)
share = alloc_table_share(table_list->db, table_list->table_name, key,
#if MYSQL_VERSION_ID >= 100306 && defined(MRN_MARIADB_P)
share = alloc_table_share(table_list->db.str,
table_list->table_name,
key,
key_length);
#elif MYSQL_VERSION_ID >= 100002 && defined(MRN_MARIADB_P)
share = alloc_table_share(table_list->db,
table_list->table_name,
key,
key_length);
#else
share = alloc_table_share(table_list, key, key_length);
Expand Down

0 comments on commit 09d6a87

Please sign in to comment.