mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03: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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user