Table_ident Class Reference

#include <sql_class.h>

Inheritance diagram for Table_ident:

Inheritance graph
[legend]
Collaboration diagram for Table_ident:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Table_ident (THD *thd, LEX_STRING db_arg, LEX_STRING table_arg, bool force)
 Table_ident (LEX_STRING table_arg)
 Table_ident (SELECT_LEX_UNIT *s)
void change_db (char *db_name)

Public Attributes

LEX_STRING db
LEX_STRING table
SELECT_LEX_UNITsel

Constructor & Destructor Documentation

Table_ident::Table_ident THD thd,
LEX_STRING  db_arg,
LEX_STRING  table_arg,
bool  force
[inline]
 

01543     :table(table_arg), sel((SELECT_LEX_UNIT *)0)
01544   {
01545     if (!force && (thd->client_capabilities & CLIENT_NO_SCHEMA))
01546       db.str=0;
01547     else
01548       db= db_arg;
01549   }

Table_ident::Table_ident LEX_STRING  table_arg  )  [inline]
 

01551     :table(table_arg), sel((SELECT_LEX_UNIT *)0)
01552   {
01553     db.str=0;
01554   }

Table_ident::Table_ident SELECT_LEX_UNIT s  )  [inline]
 

01555                                          : sel(s) 
01556   {
01557     /* We must have a table name here as this is used with add_table_to_list */
01558     db.str=0; table.str= internal_table_name; table.length=1;
01559   }


Member Function Documentation

void Table_ident::change_db char *  db_name  )  [inline]
 

01561   {
01562     db.str= db_name; db.length= (uint) strlen(db_name);
01563   }


Member Data Documentation

LEX_STRING Table_ident::db
 

SELECT_LEX_UNIT* Table_ident::sel
 

LEX_STRING Table_ident::table
 


The documentation for this class was generated from the following file:
Generated on Thu Feb 24 12:39:45 2005 for MySQL by  doxygen 1.3.9.1