summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authormonty@mysql.com <>2004-06-23 16:44:34 +0300
committermonty@mysql.com <>2004-06-23 16:44:34 +0300
commitad86016e2ff3af18892d24577e956b886bd150fd (patch)
tree65585d3f7c22945c51267af54fd8d0cafddb46e8 /sql/sql_table.cc
parentf56df164f0603b268806108526d59e5d02fef82b (diff)
downloadmariadb-git-ad86016e2ff3af18892d24577e956b886bd150fd.tar.gz
lower_case_table_names=2 (Keep case for table names) was not honored
with ALTER TABLE and CREATE/DROP INDEX. (Bug #3109) Make net_buffer_length visible for mysql clients (Bug #4206)
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 7507ab16968..03e8e895876 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -1545,7 +1545,10 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
}
}
else
- new_alias= new_name= table_name;
+ {
+ new_alias= (lower_case_table_names == 2) ? alias : table_name;
+ new_name= table_name;
+ }
old_db_type=table->db_type;
if (create_info->db_type == DB_TYPE_DEFAULT)