List:Internals« Previous MessageNext Message »
From:Jan Lindström Date:August 30 2007 11:29am
Subject:Need new accessors to THD internals
View as plain text  
Hi,

I'm implementing dynamic plugin for solidDB storage engine and I would
need to access following THD variables from my storage engine:

1) thd->query

e.g with

extern "C" const char *thd_query(MYSQL_THD thd)
{
  return(thd->query);
}

This is needed for foreign keys (at the moment you must parse
create table or alter table yourself).

2) thd->query_id

e.g. with

extern "C" ulong thd_query_id(MYSQL_THD thd)
{
  return(&thd->query_id);
}

3) thd->lex->drop_mode;

e.g. with

extern "C" int thd_drop_mode(MYSQL_THD thd)
{
  return(&thd->lex->drop_mode);
}

this is needed also for foreign keys and to support drop table ...
cascade. Could someone from MySQL add support for these assessors to
plugin.h

R: Jan

Thread
Need new accessors to THD internalsJan Lindström30 Aug
  • Re: Need new accessors to THD internalsMarko Mäkelä30 Aug
    • Re: Need new accessors to THD internalsStewart Smith31 Aug
      • Re: Need new accessors to THD internalsMarko Mäkelä31 Aug
        • Re: Need new accessors to THD internalsStewart Smith2 Sep
    • Re: Need new accessors to THD internalsJan Lindström31 Aug