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
6ad94a6d
Commit
6ad94a6d
authored
Oct 16, 2003
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test after merge
parent
1f801111
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
mysql-test/r/create.result
mysql-test/r/create.result
+4
-1
mysql-test/t/create.test
mysql-test/t/create.test
+3
-2
No files found.
mysql-test/r/create.result
View file @
6ad94a6d
...
@@ -15,6 +15,8 @@ select * from t1;
...
@@ -15,6 +15,8 @@ select * from t1;
b
b
drop table t1;
create table t1 (a int not null auto_increment,primary key (a)) type=heap;
drop table t1;
drop table t1;
create table t2 type=heap select * from t1;
create table t2 type=heap select * from t1;
ERROR 42S02: Table 'test.t1' doesn't exist
ERROR 42S02: Table 'test.t1' doesn't exist
...
@@ -26,10 +28,11 @@ Note 1051 Unknown table 't1'
...
@@ -26,10 +28,11 @@ Note 1051 Unknown table 't1'
Note 1051 Unknown table 't2'
Note 1051 Unknown table 't2'
create table t1 (b char(0) not null, index(b));
create table t1 (b char(0) not null, index(b));
ERROR 42000: The used storage engine can't index column 'b'
ERROR 42000: The used storage engine can't index column 'b'
create table t1 (a int not null auto_increment,primary key (a)) type=heap;
create table t1 (a int not null,b text) type=heap;
create table t1 (a int not null,b text) type=heap;
ERROR 42000: The used table type doesn't support BLOB/TEXT columns
ERROR 42000: The used table type doesn't support BLOB/TEXT columns
drop table if exists t1;
drop table if exists t1;
Warnings:
Note 1051 Unknown table 't1'
create table t1 (ordid int(8) not null auto_increment, ord varchar(50) not null, primary key (ord,ordid)) type=heap;
create table t1 (ordid int(8) not null auto_increment, ord varchar(50) not null, primary key (ord,ordid)) type=heap;
ERROR 42000: Incorrect table definition; There can only be one auto column and it must be defined as a key
ERROR 42000: Incorrect table definition; There can only be one auto column and it must be defined as a key
create table not_existing_database.test (a int);
create table not_existing_database.test (a int);
...
...
mysql-test/t/create.test
View file @
6ad94a6d
...
@@ -17,6 +17,9 @@ insert into t1 values (""),(null);
...
@@ -17,6 +17,9 @@ insert into t1 values (""),(null);
select
*
from
t1
;
select
*
from
t1
;
drop
table
t1
;
drop
table
t1
;
create
table
t1
(
a
int
not
null
auto_increment
,
primary
key
(
a
))
type
=
heap
;
drop
table
t1
;
#
#
# Test of some CREATE TABLE'S that should fail
# Test of some CREATE TABLE'S that should fail
#
#
...
@@ -28,8 +31,6 @@ create table t2 select auto+1 from t1;
...
@@ -28,8 +31,6 @@ create table t2 select auto+1 from t1;
drop
table
if
exists
t1
,
t2
;
drop
table
if
exists
t1
,
t2
;
--
error
1167
--
error
1167
create
table
t1
(
b
char
(
0
)
not
null
,
index
(
b
));
create
table
t1
(
b
char
(
0
)
not
null
,
index
(
b
));
--
error
1164
create
table
t1
(
a
int
not
null
auto_increment
,
primary
key
(
a
))
type
=
heap
;
--
error
1163
--
error
1163
create
table
t1
(
a
int
not
null
,
b
text
)
type
=
heap
;
create
table
t1
(
a
int
not
null
,
b
text
)
type
=
heap
;
drop
table
if
exists
t1
;
drop
table
if
exists
t1
;
...
...
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