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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d7655cbc
Commit
d7655cbc
authored
Oct 23, 2008
by
sunny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverting test file changes from r2855
parent
a348cac4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
mysql-test/innodb-index.result
mysql-test/innodb-index.result
+7
-0
mysql-test/innodb-index.test
mysql-test/innodb-index.test
+10
-0
No files found.
mysql-test/innodb-index.result
View file @
d7655cbc
...
...
@@ -46,6 +46,13 @@ t1 CREATE TABLE `t1` (
KEY `d2` (`d`),
KEY `b` (`b`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
CREATE TABLE `t1#1`(a INT PRIMARY KEY) ENGINE=InnoDB;
alter table t1 add unique index (c), add index (d);
ERROR HY000: Table 'test.t1#1' already exists
rename table `t1#1` to `t1#2`;
alter table t1 add unique index (c), add index (d);
ERROR HY000: Table 'test.t1#2' already exists
drop table `t1#2`;
alter table t1 add unique index (c), add index (d);
show create table t1;
Table Create Table
...
...
mysql-test/innodb-index.test
View file @
d7655cbc
...
...
@@ -17,6 +17,16 @@ show create table t1;
alter
table
t1
add
index
(
b
);
show
create
table
t1
;
# Check how existing tables interfere with temporary tables.
CREATE
TABLE
`t1#1`
(
a
INT
PRIMARY
KEY
)
ENGINE
=
InnoDB
;
--
error
156
alter
table
t1
add
unique
index
(
c
),
add
index
(
d
);
rename
table
`t1#1`
to
`t1#2`
;
--
error
156
alter
table
t1
add
unique
index
(
c
),
add
index
(
d
);
drop
table
`t1#2`
;
alter
table
t1
add
unique
index
(
c
),
add
index
(
d
);
show
create
table
t1
;
explain
select
*
from
t1
force
index
(
c
)
order
by
c
;
...
...
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