diff options
author | unknown <gkodinov/kgeorge@rakia.gmz> | 2007-01-31 16:12:47 +0200 |
---|---|---|
committer | unknown <gkodinov/kgeorge@rakia.gmz> | 2007-01-31 16:12:47 +0200 |
commit | 41f862e19f1ae34e4d30e6f2ad30d9a9317ce0ca (patch) | |
tree | da321e2ef4b485b11d3bde30f5fffe2698e0468e /sql/sql_parse.cc | |
parent | 21d915c0717107c5f6c17cc22ebfa1673cde06b4 (diff) | |
parent | fbc16a85c2e91385c8d4cce7ab32d092025c76ad (diff) | |
download | mariadb-git-41f862e19f1ae34e4d30e6f2ad30d9a9317ce0ca.tar.gz |
Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into rakia.gmz:/home/kgeorge/mysql/autopush/B25575-5.0-opt
sql/mysql_priv.h:
Auto merged
sql/sql_lex.h:
Auto merged
sql/sql_parse.cc:
Auto merged
sql/sql_yacc.yy:
Auto merged
sql/table.cc:
Auto merged
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index b3f31b7e30c..e81b95de486 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -6432,11 +6432,8 @@ TABLE_LIST *st_select_lex::nest_last_join(THD *thd) If this is a JOIN ... USING, move the list of joined fields to the table reference that describes the join. */ - if (table->join_using_fields) - { - ptr->join_using_fields= table->join_using_fields; - table->join_using_fields= NULL; - } + if (prev_join_using) + ptr->join_using_fields= prev_join_using; } } join_list->push_front(ptr); @@ -6692,6 +6689,7 @@ void add_join_on(TABLE_LIST *b, Item *expr) a Left join argument b Right join argument using_fields Field names from USING clause + lex The current st_select_lex IMPLEMENTATION This function marks that table b should be joined with a either via @@ -6720,10 +6718,11 @@ void add_join_on(TABLE_LIST *b, Item *expr) None */ -void add_join_natural(TABLE_LIST *a, TABLE_LIST *b, List<String> *using_fields) +void add_join_natural(TABLE_LIST *a, TABLE_LIST *b, List<String> *using_fields, + SELECT_LEX *lex) { b->natural_join= a; - b->join_using_fields= using_fields; + lex->prev_join_using= using_fields; } |