| 133 | } |
| 134 | |
| 135 | static int discover_table(handlerton *hton, THD* thd, TABLE_SHARE *share) |
| 136 | { |
| 137 | const char *sql= THDVAR(thd, statement); |
| 138 | |
| 139 | // the table is discovered if sql starts from "table_name:" |
| 140 | if (!sql || |
| 141 | strncmp(sql, share->table_name.str, share->table_name.length) || |
| 142 | sql[share->table_name.length] != ':') |
| 143 | return HA_ERR_NO_SUCH_TABLE; |
| 144 | |
| 145 | sql+= share->table_name.length + 1; |
| 146 | return share->init_from_sql_statement_string(thd, THDVAR(thd, write_frm), |
| 147 | sql, strlen(sql)); |
| 148 | } |
| 149 | |
| 150 | static int drop_table(handlerton *hton, const char *path) |
| 151 | { |
nothing calls this directly
no test coverage detected