1
0
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:
unknown
2004-10-01 12:39:11 -07:00
parent a930fd3e56
commit d352949e1a
3 changed files with 20 additions and 0 deletions

View 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
View 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;

View File

@ -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)},