From e2d15b16d2fa9cd66c6360ce50a6b6f99812db65 Mon Sep 17 00:00:00 2001 From: "aivanov/alexi@mysql.com/mysqld.localdomain" <> Date: Mon, 18 Sep 2006 03:21:00 +0400 Subject: BUG#19419: VIEW: View that the column name is different by master and slave is made. --- sql/sql_parse.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'sql/sql_parse.cc') diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 905e8cdc71a..4f6bda5175f 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -4765,6 +4765,19 @@ end_with_restore_list: } append_identifier(thd, &buff, first_table->table_name, first_table->table_name_length); + if (lex->view_list.elements) + { + List_iterator_fast names(lex->view_list); + LEX_STRING *name; + int i; + + for (i= 0; name= names++; i++) + { + buff.append(i ? ", " : "("); + append_identifier(thd, &buff, name->str, name->length); + } + buff.append(')'); + } buff.append(STRING_WITH_LEN(" AS ")); buff.append(first_table->source.str, first_table->source.length); -- cgit v1.2.1