mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 10:15:29 +02:00
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
into sanja.is.com.ua:/home/bell/mysql/bk/work-error-5.0 sql/item.cc: Auto merged sql/item.h: Auto merged sql/sql_lex.cc: Auto merged sql/sql_lex.h: Auto merged sql/table.h: Auto merged
This commit is contained in:
commit
239cdc27dc
8 changed files with 75 additions and 4 deletions
|
|
@ -1723,6 +1723,7 @@ bool st_lex::can_not_use_merged()
|
|||
TRUE yes, we need only structure
|
||||
FALSE no, we need data
|
||||
*/
|
||||
|
||||
bool st_lex::only_view_structure()
|
||||
{
|
||||
switch(sql_command)
|
||||
|
|
@ -1741,6 +1742,32 @@ bool st_lex::only_view_structure()
|
|||
}
|
||||
|
||||
|
||||
/*
|
||||
Should Items_ident be printed correctly
|
||||
|
||||
SYNOPSIS
|
||||
need_correct_ident()
|
||||
|
||||
RETURN
|
||||
TRUE yes, we need only structure
|
||||
FALSE no, we need data
|
||||
*/
|
||||
|
||||
|
||||
bool st_lex::need_correct_ident()
|
||||
{
|
||||
switch(sql_command)
|
||||
{
|
||||
case SQLCOM_SHOW_CREATE:
|
||||
case SQLCOM_SHOW_TABLES:
|
||||
case SQLCOM_CREATE_VIEW:
|
||||
return TRUE;
|
||||
default:
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
initialize limit counters
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue