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
39c5ae17
Commit
39c5ae17
authored
Aug 01, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: innodb-index.test: Replace numeric error codes with
symbolic ones.
parent
cd73e0c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
mysql-test/innodb-index.test
mysql-test/innodb-index.test
+15
-15
No files found.
mysql-test/innodb-index.test
View file @
39c5ae17
...
...
@@ -3,15 +3,15 @@
create
table
t1
(
a
int
not
null
,
b
int
,
c
char
(
10
),
d
varchar
(
20
),
primary
key
(
a
))
engine
=
innodb
;
insert
into
t1
values
(
5
,
5
,
'oo'
,
'oo'
),(
4
,
4
,
'tr'
,
'tr'
),(
3
,
4
,
'ad'
,
'ad'
),(
2
,
3
,
'ak'
,
'ak'
);
commit
;
--
error
1061
--
error
ER_DUP_KEYNAME
alter
table
t1
add
index
b
(
b
),
add
index
b
(
b
);
--
error
1060
--
error
ER_DUP_FIELDNAME
alter
table
t1
add
index
(
b
,
b
);
alter
table
t1
add
index
d2
(
d
);
show
create
table
t1
;
explain
select
*
from
t1
order
by
d
;
select
*
from
t1
order
by
d
;
--
error
1582
--
error
ER_DUP_ENTRY
alter
table
t1
add
unique
index
(
b
);
show
create
table
t1
;
alter
table
t1
add
index
(
b
);
...
...
@@ -102,15 +102,15 @@ create table t4(a int not null, d int not null, e int, primary key (a), key (d))
create
table
t2
(
a
int
not
null
,
b
int
not
null
,
c
int
not
null
,
d
int
not
null
,
e
int
,
primary
key
(
a
),
foreign
key
(
b
)
references
t1
(
b
),
foreign
key
(
c
)
references
t3
(
c
),
foreign
key
(
d
)
references
t4
(
d
))
engine
=
innodb
;
--
error
1542
--
error
ER_DROP_INDEX_FK
alter
table
t1
drop
index
b
;
--
error
1542
--
error
ER_DROP_INDEX_FK
alter
table
t3
drop
index
c
;
--
error
1542
--
error
ER_DROP_INDEX_FK
alter
table
t4
drop
index
d
;
--
error
1542
--
error
ER_DROP_INDEX_FK
alter
table
t2
drop
index
b
;
--
error
1542
--
error
ER_DROP_INDEX_FK
alter
table
t2
drop
index
b
,
drop
index
c
,
drop
index
d
;
set
foreign_key_checks
=
0
;
insert
into
t1
values
(
1
,
1
,
1
);
...
...
@@ -133,7 +133,7 @@ engine = innodb default charset=utf8;
insert
into
t1
values
(
1
,
1
,
'ab'
,
'ab'
),(
2
,
2
,
'ac'
,
'ac'
),(
3
,
2
,
'ad'
,
'ad'
),(
4
,
4
,
'afe'
,
'afe'
);
commit
;
--
replace_regex
/
Duplicate
entry
'[0-9]*'
/
Duplicate
entry
''
/
--
error
1582
--
error
ER_DUP_ENTRY
alter
table
t1
add
unique
index
(
b
);
insert
into
t1
values
(
8
,
9
,
'fff'
,
'fff'
);
select
*
from
t1
;
...
...
@@ -172,7 +172,7 @@ engine = innodb default charset=ucs2;
insert
into
t1
values
(
1
,
1
,
'ab'
,
'ab'
),(
2
,
2
,
'ac'
,
'ac'
),(
3
,
2
,
'ad'
,
'ad'
),(
4
,
4
,
'afe'
,
'afe'
);
commit
;
--
replace_regex
/
Duplicate
entry
'[0-9]*'
/
Duplicate
entry
''
/
--
error
1582
--
error
ER_DUP_ENTRY
alter
table
t1
add
unique
index
(
b
);
show
create
table
t1
;
alter
table
t1
add
index
(
b
);
...
...
@@ -200,11 +200,11 @@ drop table t1;
create
table
t1
(
a
int
not
null
,
b
int
)
engine
=
innodb
;
insert
into
t1
values
(
1
,
1
),(
1
,
1
),(
1
,
1
),(
1
,
1
);
--
error
1582
--
error
ER_DUP_ENTRY
alter
table
t1
add
unique
index
(
a
);
--
error
1582
--
error
ER_DUP_ENTRY
alter
table
t1
add
unique
index
(
b
);
--
error
1582
--
error
ER_DUP_ENTRY
alter
table
t1
add
unique
index
(
a
),
add
unique
index
(
b
);
show
create
table
t1
;
drop
table
t1
;
...
...
@@ -221,9 +221,9 @@ drop table t1;
create
table
t1
(
a
int
not
null
,
b
int
,
c
char
(
10
),
d
varchar
(
20
),
primary
key
(
a
))
engine
=
innodb
;
insert
into
t1
values
(
1
,
1
,
'ab'
,
'ab'
),(
2
,
2
,
'ac'
,
'ac'
),(
3
,
3
,
'ac'
,
'ac'
),(
4
,
4
,
'afe'
,
'afe'
);
--
error
1582
--
error
ER_DUP_ENTRY
alter
table
t1
add
unique
index
(
b
),
add
unique
index
(
c
),
add
unique
index
(
d
);
--
error
1582
--
error
ER_DUP_ENTRY
alter
table
t1
add
unique
index
(
b
),
add
index
(
d
),
add
unique
index
(
c
);
show
create
table
t1
;
drop
table
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