summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
authorunknown <kostja@bodhi.(none)>2007-07-12 01:10:29 +0400
committerunknown <kostja@bodhi.(none)>2007-07-12 01:10:29 +0400
commit0bc3e69f92497c04cdd48e7936888183fd8a21d5 (patch)
treebd01b1baaf346bfc2b35440879a604aac91da7b0 /sql/sql_yacc.yy
parenta64be676a4cd799c7b7259d950df7040879a8889 (diff)
downloadmariadb-git-0bc3e69f92497c04cdd48e7936888183fd8a21d5.tar.gz
A fix and a test case for Bug#25859 ALTER DATABASE works w/o parameters.
Fix the parser to make the database options not optional. mysql-test/r/information_schema.result: Update results (Bug#25859) mysql-test/t/information_schema.test: Add a test case for Bug#25859 "ALTER DATABASE works w/o parameters" sql/sql_yacc.yy: Fix Bug#25859 ALTER DATABASE works w/o parameters - require parameters in the parser.
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r--sql/sql_yacc.yy2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index 949f3ed4161..6c38c5984a3 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -3621,7 +3621,7 @@ alter:
Lex->create_info.default_table_charset= NULL;
Lex->create_info.used_fields= 0;
}
- opt_create_database_options
+ create_database_options
{
LEX *lex=Lex;
lex->sql_command=SQLCOM_ALTER_DB;