MXS-1299: Fix CREATE TABLE t1 LIKE t2 processing

The creation of tables from other tables was not working even though the
information was available inside the avrorouter.
This commit is contained in:
Markus Mäkelä
2017-06-28 11:25:57 +03:00
parent 84925b3f10
commit 40b1739249
3 changed files with 241 additions and 2 deletions

View File

@ -302,6 +302,7 @@ extern void read_table_info(uint8_t *ptr, uint8_t post_header_len, uint64_t *tab
extern TABLE_MAP *table_map_alloc(uint8_t *ptr, uint8_t hdr_len, TABLE_CREATE* create);
extern void table_map_free(TABLE_MAP *map);
extern TABLE_CREATE* table_create_alloc(const char* sql, const char* db);
extern TABLE_CREATE* table_create_copy(AVRO_INSTANCE *router, const char* sql, size_t len, const char* db);
extern void table_create_free(TABLE_CREATE* value);
extern bool table_create_save(TABLE_CREATE *create, const char *filename);
extern bool table_create_alter(TABLE_CREATE *create, const char *sql, const char *end);