Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions storage/oqgraph/graphcore-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ namespace open_query
}


// Forward defs from mariadb itself!
class Field;
typedef struct TABLE TABLE;
class THD;

#endif
3 changes: 3 additions & 0 deletions storage/oqgraph/graphcore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,9 @@ namespace open_query
return num_vertices(share->g);
}

THD* oqgraph::get_thd() { return share->g.get_table_thd(); }
void oqgraph::set_thd(THD* thd) { share->g.set_table_thd(thd); }

oqgraph* oqgraph::create(oqgraph_share *share) throw()
{
assert(share != NULL);
Expand Down
3 changes: 3 additions & 0 deletions storage/oqgraph/graphcore.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ namespace open_query
static oqgraph* create(oqgraph_share*) throw();
static oqgraph_share *create(TABLE*,Field*,Field*,Field*) throw();

THD* get_thd();
void set_thd(THD*);

static void free(oqgraph*) throw();
static void free(oqgraph_share*) throw();

Expand Down
Loading