summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-11-24 20:01:34 +0200
committerbell@sanja.is.com.ua <>2004-11-24 20:01:34 +0200
commit3fa511ff54339df057f164217f896738a568c4e3 (patch)
tree4683f9b0bafdfc81a512c163214a6e6e30e28121 /sql/sql_lex.cc
parent9e467cc009a02cab2cb42d9f8f22eb9df6a70a3d (diff)
parent6d5d5ff9410481f9f0eb6b08fd0cc00ca9621f14 (diff)
downloadmariadb-git-3fa511ff54339df057f164217f896738a568c4e3.tar.gz
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
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc27
1 files changed, 27 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index 971ba125859..28259026dc5 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -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)
@@ -1742,6 +1743,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
SYNOPSIS