From 020e3bd7130d1076ed4c1cb2d1df32a656549f73 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 23 Oct 2002 19:18:54 +0500 Subject: [PATCH] All these syntaxes now work: CREATE TABLE a (...) TYPE isam CHARSET latin1 MAX_ROWS 1000; CREATE TABLE a (...) TYPE=isam CHARSET=latin1 MAX_ROWS=1000; CREATE TABLE a (...) TYPE isam, CHARSET latin1, MAX_ROWS 1000; CREATE TABLE a (...) TYPE=isam, CHARSET=latin1, MAX_ROWS=1000; --- sql/sql_yacc.yy | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index 2426efb7e9c..42584ed7440 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -867,9 +867,14 @@ opt_create_table_options: /* empty */ | create_table_options; +create_table_options_space_separated: + create_table_option + | create_table_option create_table_options_space_separated; + create_table_options: create_table_option - | create_table_option create_table_options; + | create_table_option create_table_options; + | create_table_option ',' create_table_options; o_eq: /* empty */ @@ -1380,7 +1385,7 @@ alter_list_item: lex->select->db=$3->db.str; lex->name= $3->table.str; } - | create_table_options { Lex->simple_alter=0; } + | create_table_options_space_separated { Lex->simple_alter=0; } | order_clause { Lex->simple_alter=0; }; opt_column: