1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

mysql_create_table now accepts field lengths in CREATE form, not in internal form.

This is to simplify fixing indexes to mean number of chars rather than bytes too.
This commit is contained in:
bar@bar.mysql.r18.ru
2003-09-10 17:25:26 +05:00
parent d9ef1585d1
commit 6fa45cec53
3 changed files with 25 additions and 21 deletions

View File

@@ -2050,14 +2050,6 @@ mysql_execute_command(THD *thd)
(Table_ident *)lex->name);
else
{
List_iterator<create_field> fields(lex->create_list);
create_field *field;
while ((field= fields++))
{
if (!field->charset)
field->charset= lex->create_info.table_charset;
field->create_length_to_internal_length();
}
res= mysql_create_table(thd,tables->db ? tables->db : thd->db,
tables->real_name, &lex->create_info,
lex->create_list,