mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Update to add keyword "SCHEMA" and "SCHEMAS". Small test case was added too.
sql/lex.h: Update to add compatibility keyword "SCHEMA"
This commit is contained in:
10
mysql-test/r/schema.result
Normal file
10
mysql-test/r/schema.result
Normal file
@ -0,0 +1,10 @@
|
||||
create schema foo;
|
||||
show create schema foo;
|
||||
Database Create Database
|
||||
foo CREATE DATABASE `foo` /*!40100 DEFAULT CHARACTER SET latin1 */
|
||||
show schemas;
|
||||
Database
|
||||
foo
|
||||
mysql
|
||||
test
|
||||
drop schema foo;
|
8
mysql-test/t/schema.test
Normal file
8
mysql-test/t/schema.test
Normal file
@ -0,0 +1,8 @@
|
||||
#
|
||||
# Just a couple of tests to make sure that schema works.
|
||||
#
|
||||
|
||||
create schema foo;
|
||||
show create schema foo;
|
||||
show schemas;
|
||||
drop schema foo;
|
@ -397,6 +397,8 @@ static SYMBOL symbols[] = {
|
||||
{ "ROW_FORMAT", SYM(ROW_FORMAT_SYM)},
|
||||
{ "RTREE", SYM(RTREE_SYM)},
|
||||
{ "SAVEPOINT", SYM(SAVEPOINT_SYM)},
|
||||
{ "SCHEMA", SYM(DATABASE)},
|
||||
{ "SCHEMAS", SYM(DATABASES)},
|
||||
{ "SECOND", SYM(SECOND_SYM)},
|
||||
{ "SECOND_MICROSECOND", SYM(SECOND_MICROSECOND_SYM)},
|
||||
{ "SECURITY", SYM(SECURITY_SYM)},
|
||||
|
Reference in New Issue
Block a user