MCPcopy Create free account
hub / github.com/MariaDB/server / discover_table

Function discover_table

storage/sequence/sequence.cc:345–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343
344
345static int discover_table(handlerton *hton, THD *thd, TABLE_SHARE *share)
346{
347 ulonglong from, to, step;
348 if (parse_table_name(share->table_name.str, share->table_name.length,
349 &from, &to, &step))
350 return HA_ERR_NO_SUCH_TABLE;
351
352 if (step == 0)
353 return HA_WRONG_CREATE_OPTION;
354
355 const char *sql="create table seq (seq bigint unsigned primary key)";
356 return share->init_from_sql_statement_string(thd, 0, sql, strlen(sql));
357}
358
359
360static int discover_table_existence(handlerton *hton, const char *db,

Callers

nothing calls this directly

Calls 2

parse_table_nameFunction · 0.85

Tested by

no test coverage detected