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

Method start

sql/json_table.cc:741–762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739*/
740
741TABLE *Create_json_table::start(THD *thd,
742 TMP_TABLE_PARAM *param,
743 Table_function_json_table *jt,
744 const LEX_CSTRING *table_alias)
745{
746 TABLE *table;
747 TABLE_SHARE *share;
748 DBUG_ENTER("Create_json_table::start");
749
750 param->tmp_name= "json";
751 if (!(table= Create_tmp_table::start(thd, param, table_alias)))
752 DBUG_RETURN(0);
753 share= table->s;
754 share->db= any_db;
755 share->table_name= { STRING_WITH_LEN("json_table") };
756 share->not_usable_by_query_cache= FALSE;
757 share->db_plugin= NULL;
758 if (!(table->file= new (&table->mem_root) ha_json_table(share, jt)))
759 DBUG_RETURN(NULL);
760 table->file->init();
761 DBUG_RETURN(table);
762}
763
764
765bool Create_json_table::finalize(THD *thd, TABLE *table,

Callers 1

Calls 1

initMethod · 0.45

Tested by

no test coverage detected