Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f07a80f7
Commit
f07a80f7
authored
18 years ago
by
jmiller@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated with feedback omer provided
parent
8e5e0afa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
24 deletions
+60
-24
mysql-test/r/ndb_dd_ddl.result
mysql-test/r/ndb_dd_ddl.result
+19
-12
mysql-test/t/ndb_dd_ddl.test
mysql-test/t/ndb_dd_ddl.test
+41
-12
No files found.
mysql-test/r/ndb_dd_ddl.result
View file @
f07a80f7
DROP TABLE IF EXISTS t1;
DROP DATABASE IF EXISTS mysqltest;
CREATE DATABASE mysqltest;
**** Begin Duplicate Statement Testing ****
CREATE LOGFILE GROUP lg1
ADD UNDOFILE 'undofile.dat'
...
...
@@ -38,16 +40,20 @@ ADD DATAFILE 'datafile2.dat'
INITIAL_SIZE 12M
ENGINE=NDB;
ERROR HY000: Failed to alter: CREATE DATAFILE
CREATE TABLE t1
(pk1
int not null primary key, b int not null, c int not null
)
tablespace ts1 storage disk
engine ndb
;
CREATE TABLE t1
(pk1
int not null primary key, b int not null, c int not null
)
tablespace ts1 storage disk
engine ndb
;
CREATE TABLE
mysqltest.
t1
(pk1
INT NOT NULL PRIMARY KEY, b INT NOT NULL, c INT NOT NULL
)
TABLESPACE ts1 STORAGE DISK
ENGINE=NDB
;
CREATE TABLE
mysqltest.
t1
(pk1
INT NOT NULL PRIMARY KEY, b INT NOT NULL, c INT NOT NULL
)
TABLESPACE ts1 STORAGE DISK
ENGINE=NDB
;
ERROR 42S01: Table 't1' already exists
DROP TABLE t1;
CREATE TABLE mysqltest.t1
(pk1 INT NOT NULL PRIMARY KEY, b INT NOT NULL, c INT NOT NULL)
ENGINE=NDB;
ERROR 42S01: Table 't1' already exists
DROP TABLE mysqltest.t1;
ALTER TABLESPACE ts1
DROP DATAFILE 'datafile2.dat'
ENGINE=NDB;
...
...
@@ -72,6 +78,7 @@ ENGINE=NDB;
DROP LOGFILE GROUP lg1
ENGINE=NDB;
ERROR HY000: Failed to drop LOGFILE GROUP
DROP DATABASE IF EXISTS mysqltest;
**** End Duplicate Statement Testing ****
**** Begin Statment CaSe Testing ****
...
...
@@ -81,7 +88,7 @@ initiAL_siZE 16M
UnDo_BuFfEr_SiZe = 1M
ENGInE=NDb;
altER LOgFiLE GrOUp lg1
AdD UnDOfILe 'u
ndofile02.dat
'
AdD UnDOfILe 'u
NdOfiLe02.daT
'
INItIAl_SIzE 4M ENgINE nDB;
CrEAtE TABLEspaCE ts1
ADD DATAfilE 'datafile.dat'
...
...
@@ -89,7 +96,7 @@ UsE LoGFiLE GRoUP lg1
INITiaL_SizE 12M
ENGiNe NDb;
AlTeR tAbLeSpAcE ts1
AdD DaTaFiLe 'd
atafile2.dat
'
AdD DaTaFiLe 'd
AtAfiLe2.daT
'
InItIaL_SiZe 12M
EnGiNe=NDB;
CREATE TABLE t1
...
...
@@ -98,7 +105,7 @@ TABLEspace ts1 storAGE dISk
ENGine nDb;
DROP TABLE t1;
AlteR TAblespaCE ts1
droP DATAfile 'd
atafile2.dat
'
droP DATAfile 'd
AtAfiLe2.daT
'
ENGINE=NDB;
ALter tablesPACE ts1
dROp dAtAfIlE 'datafile.dat'
...
...
This diff is collapsed.
Click to expand it.
mysql-test/t/ndb_dd_ddl.test
View file @
f07a80f7
...
...
@@ -5,10 +5,30 @@
# Table spaces and log groups. Also to test
# Statement mixed case.
############################################
# Change Author:JBM
# Change Date 2006-01-19
# Change: Adding to test cases feedback from OB
# 1) The 'duplicate' tests.
# a) The test is using the default (test) database and is not
# attempting to create databases (only logs, table spaces and
# tables). Is this intentional?
# b) What about a duplication of table name when one exists on disk and
# you are trying to create it again in memory?
#
#2) 'CaSE SensiTiVE' tests
# a) Suggest you include a test case where the case difference is in
# the file name. I know this is not an issue for *nix systems but
# will be when we expand to Windows and Mac. Better put it in now.
############################################
--
source
include
/
have_ndb
.
inc
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
DROP
DATABASE
IF
EXISTS
mysqltest
;
CREATE
DATABASE
mysqltest
;
--
enable_warnings
############## Duplcate Statement Testing #########
...
...
@@ -62,18 +82,24 @@ ADD DATAFILE 'datafile2.dat'
INITIAL_SIZE
12
M
ENGINE
=
NDB
;
CREATE
TABLE
t1
(
pk1
int
not
null
primary
key
,
b
int
not
null
,
c
int
not
null
)
tablespace
ts1
storage
disk
engine
ndb
;
CREATE
TABLE
mysqltest
.
t1
(
pk1
INT
NOT
NULL
PRIMARY
KEY
,
b
INT
NOT
NULL
,
c
INT
NOT
NULL
)
TABLESPACE
ts1
STORAGE
DISK
ENGINE
=
NDB
;
--
error
ER_TABLE_EXISTS_ERROR
CREATE
TABLE
t1
(
pk1
int
not
null
primary
key
,
b
int
not
null
,
c
int
not
null
)
tablespace
ts1
storage
disk
engine
ndb
;
CREATE
TABLE
mysqltest
.
t1
(
pk1
INT
NOT
NULL
PRIMARY
KEY
,
b
INT
NOT
NULL
,
c
INT
NOT
NULL
)
TABLESPACE
ts1
STORAGE
DISK
ENGINE
=
NDB
;
DROP
TABLE
t1
;
--
error
ER_TABLE_EXISTS_ERROR
CREATE
TABLE
mysqltest
.
t1
(
pk1
INT
NOT
NULL
PRIMARY
KEY
,
b
INT
NOT
NULL
,
c
INT
NOT
NULL
)
ENGINE
=
NDB
;
DROP
TABLE
mysqltest
.
t1
;
ALTER
TABLESPACE
ts1
DROP
DATAFILE
'datafile2.dat'
...
...
@@ -106,6 +132,9 @@ ENGINE=NDB;
--
error
ER_DROP_TABLESPACE_FAILED
DROP
LOGFILE
GROUP
lg1
ENGINE
=
NDB
;
DROP
DATABASE
IF
EXISTS
mysqltest
;
--
echo
****
End
Duplicate
Statement
Testing
****
############# End Duplicate Statments ############
--
echo
...
...
@@ -119,7 +148,7 @@ UnDo_BuFfEr_SiZe = 1M
ENGInE
=
NDb
;
altER
LOgFiLE
GrOUp
lg1
AdD
UnDOfILe
'u
ndofile02.dat
'
AdD
UnDOfILe
'u
NdOfiLe02.daT
'
INItIAl_SIzE
4
M
ENgINE
nDB
;
CrEAtE
TABLEspaCE
ts1
...
...
@@ -129,7 +158,7 @@ INITiaL_SizE 12M
ENGiNe NDb
;
AlTeR
tAbLeSpAcE
ts1
AdD
DaTaFiLe
'd
atafile2.dat
'
AdD
DaTaFiLe
'd
AtAfiLe2.daT
'
InItIaL_SiZe
12
M
EnGiNe
=
NDB
;
...
...
@@ -141,7 +170,7 @@ ENGine nDb;
DROP
TABLE
t1
;
AlteR
TAblespaCE
ts1
droP
DATAfile
'd
atafile2.dat
'
droP
DATAfile
'd
AtAfiLe2.daT
'
ENGINE
=
NDB
;
ALter
tablesPACE
ts1
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment