Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Best way to determine table name in INFORMATION_SCHEMA's fill_table()?

From: Vasil Dimov <vasil.dimov(at)oracle.com>
Date: Fri Jul 13 2007 - 10:11:09 EDT


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@vomid.lisav        Software Developer @ Oracle/Innobase Oy
gro.DSBeerF@dv                Committer @ FreeBSD.org
gro.d5v@dv                    Home @ Sofia, Bulgaria
  • application/pgp-signature attachment: stored
Received on Fri Jul 13 10:11:29 2007
Do you need help?X

This archive was generated by hypermail 2.1.8 : Thu Aug 02 2007 - 01:57:05 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library