MySQL 8.4.2
Source Code Documentation
Table_ident Class Reference

#include <sql_lex.h>

Public Member Functions

 Table_ident (Protocol *protocol, const LEX_CSTRING &db_arg, const LEX_CSTRING &table_arg, bool force)
 
 Table_ident (const LEX_CSTRING &db_arg, const LEX_CSTRING &table_arg)
 
 Table_ident (const LEX_CSTRING &table_arg)
 
 Table_ident (Query_expression *s)
 This constructor is used only for the case when we create a derived table. More...
 
 Table_ident (LEX_CSTRING &table_arg, Table_function *table_func_arg)
 
bool is_table_function () const
 
bool is_derived_table () const
 
void change_db (const char *db_name)
 

Public Attributes

LEX_CSTRING db
 
LEX_CSTRING table
 
Query_expressionsel
 
Table_functiontable_function
 

Constructor & Destructor Documentation

◆ Table_ident() [1/5]

Table_ident::Table_ident ( Protocol protocol,
const LEX_CSTRING db_arg,
const LEX_CSTRING table_arg,
bool  force 
)

◆ Table_ident() [2/5]

Table_ident::Table_ident ( const LEX_CSTRING db_arg,
const LEX_CSTRING table_arg 
)
inline

◆ Table_ident() [3/5]

Table_ident::Table_ident ( const LEX_CSTRING table_arg)
inline

◆ Table_ident() [4/5]

Table_ident::Table_ident ( Query_expression s)
inline

This constructor is used only for the case when we create a derived table.

A derived table has no name and doesn't belong to any database. Later, if there was an alias specified for the table, it will be set by add_table_to_list.

◆ Table_ident() [5/5]

Table_ident::Table_ident ( LEX_CSTRING table_arg,
Table_function table_func_arg 
)
inline

Member Function Documentation

◆ change_db()

void Table_ident::change_db ( const char *  db_name)
inline

◆ is_derived_table()

bool Table_ident::is_derived_table ( ) const
inline

◆ is_table_function()

bool Table_ident::is_table_function ( ) const
inline

Member Data Documentation

◆ db

LEX_CSTRING Table_ident::db

◆ sel

Query_expression* Table_ident::sel

◆ table

LEX_CSTRING Table_ident::table

◆ table_function

Table_function* Table_ident::table_function

The documentation for this class was generated from the following files: