diff options
author | unknown <kostja@bodhi.local> | 2007-01-17 15:46:30 +0300 |
---|---|---|
committer | unknown <kostja@bodhi.local> | 2007-01-17 15:46:30 +0300 |
commit | f7e41baedbaf246e68936c1fbb105b75bf28ae44 (patch) | |
tree | 867bc2f28830fa21646b7b55b116ab671920bbeb /sql/sql_parse.cc | |
parent | 9cff68bb3b2408c8cefccaa230a527cb1a9f955e (diff) | |
download | mariadb-git-f7e41baedbaf246e68936c1fbb105b75bf28ae44.tar.gz |
Fix a failure of lowercase_tables2 test on powermacg5, introduced
by the patch for Bug#4968
sql/sql_parse.cc:
Fix lowercase_tables2 test failure on powermacg5: table_case_name()
function needed create_info.alias if lowercase_table_names=2, which
was not set for the stack copy of HA_CREATE_INFO. Move the
update of create_info.alias from create_table_precheck to
mysql_execute_command, so that it is done on the right object.
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 3e2e12ba310..6e1a8ba3abc 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -2500,6 +2500,7 @@ mysql_execute_command(THD *thd) if ((res= create_table_precheck(thd, tables, create_table))) goto unsent_create_error; + create_info.alias= create_table->alias; #ifndef HAVE_READLINK create_info.data_file_name= create_info.index_file_name= NULL; #else @@ -5800,7 +5801,6 @@ int create_table_precheck(THD *thd, TABLE_LIST *tables, want_priv= ((lex->create_info.options & HA_LEX_CREATE_TMP_TABLE) ? CREATE_TMP_ACL : CREATE_ACL); - lex->create_info.alias= create_table->alias; if (check_access(thd, want_priv, create_table->db, &create_table->grant.privilege, 0, 0) || check_merge_table_access(thd, create_table->db, |