Hi,
Some background:
The init() function of an INFORMATION_SCHEMA plugin sets the
::fill_table member which is a function that takes
THD*, TABLE_LIST*, COND* arguments.
My question is:
What is the best way to determine the name of the table from this
function?
(I intend to use one function for several plugins, in the case of one
plugin this question does not make sense because the table being filled
is known in advance).
I can see that (assuming the TABLE_LIST* argument name "table") the name
of the table being filled is set in these fields:
table->alias
table->schema_table_name
table->schema_table->table_name
Does it matter which one am I going to use? Is it possible that in some
circumstances some of these is not set or is set to something else than
the plain table name?
Thanks!
--
Vasil Dimov
moc.elcaro@stripped Software Developer @ Oracle/Innobase Oy
gro.DSBeerF@dv Committer @ FreeBSD.org
gro.d5v@dv Home @ Sofia, Bulgaria
Attachment: [application/pgp-signature]