diff options
author | unknown <aivanov/alexi@mysql.com/mysqld.localdomain> | 2006-09-18 03:21:00 +0400 |
---|---|---|
committer | unknown <aivanov/alexi@mysql.com/mysqld.localdomain> | 2006-09-18 03:21:00 +0400 |
commit | 447f2333fe235fbac807a4f9699ec585642092cd (patch) | |
tree | bdd85b273f781db4a57539a4268a5c17d4441cad /sql/sql_parse.cc | |
parent | 370f8ec15f738e50c3d1419cc945af2c1a9f6fe5 (diff) | |
download | mariadb-git-447f2333fe235fbac807a4f9699ec585642092cd.tar.gz |
BUG#19419: VIEW: View that the column name is different
by master and slave is made.
mysql-test/r/rpl_view.result:
BUG#19419: VIEW: View that the column name is different
by master and slave is made.
Fixed result for the added test case.
mysql-test/t/rpl_view.test:
BUG#19419: VIEW: View that the column name is different
by master and slave is made.
Added test case.
sql/sql_parse.cc:
BUG#19419: VIEW: View that the column name is different
by master and slave is made.
Fixed: Add column_list to to the view creation statement
which is written to binlog.
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 13 |
1 files changed, 13 insertions, 0 deletions
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<LEX_STRING> 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); |