summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorunknown <gluh@gluh.mysql.r18.ru>2003-12-07 13:36:29 +0400
committerunknown <gluh@gluh.mysql.r18.ru>2003-12-07 13:36:29 +0400
commitb0087312df0e6ad7913c105df98031d39cc2691c (patch)
tree675057cb210faaf2f823943a2bd8fde385087fc2 /sql/sql_parse.cc
parent1d298246e4c1d3d856e5131d582cbca70073f646 (diff)
parent2f7bf9fc873e47b618fc90bb65458b7474d53496 (diff)
downloadmariadb-git-b0087312df0e6ad7913c105df98031d39cc2691c.tar.gz
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-4.0
into gluh.mysql.r18.ru:/home/gluh/mysql-4.0.pass sql/sql_parse.cc: Auto merged
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 54cb3ade404..c867112bb2a 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -2905,6 +2905,12 @@ mysql_init_query(THD *thd)
thd->lex.select_lex.table_list.first=0;
thd->lex.select_lex.table_list.next= (byte**) &thd->lex.select_lex.table_list.first;
thd->lex.select_lex.next=0;
+ /*
+ select_lex.options is also inited in dispatch_command(), but for
+ replication (which bypasses dispatch_command() and calls mysql_parse()
+ directly) we must do it here.
+ */
+ thd->lex.select_lex.options=0;
thd->lex.olap=0;
thd->lex.select->olap= UNSPECIFIED_OLAP_TYPE;
thd->fatal_error=0; // Safety