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
9d57de14
Commit
9d57de14
authored
Oct 29, 2007
by
ramil/ram@mysql.com/ramil.myoffice.izhnet.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after-merge fix-up.
parent
b6a808bd
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
89 additions
and
0 deletions
+89
-0
mysql-test/include/mix1.inc
mysql-test/include/mix1.inc
+9
-0
mysql-test/r/innodb_mysql.result
mysql-test/r/innodb_mysql.result
+15
-0
mysql-test/r/key.result
mysql-test/r/key.result
+45
-0
mysql-test/t/key.test
mysql-test/t/key.test
+20
-0
No files found.
mysql-test/include/mix1.inc
View file @
9d57de14
...
@@ -1019,6 +1019,15 @@ SELECT * FROM t1 ORDER BY b DESC, a ASC;
...
@@ -1019,6 +1019,15 @@ SELECT * FROM t1 ORDER BY b DESC, a ASC;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
#
# Bug #31137: Assertion failed: primary_key_no == -1 || primary_key_no == 0
#
create
table
t1
(
a
char
(
10
)
not
null
,
unique
key
aa
(
a
(
1
)),
b
char
(
4
)
not
null
,
unique
key
bb
(
b
(
4
)))
engine
=
innodb
;
desc
t1
;
show
create
table
t1
;
drop
table
t1
;
--
echo
End
of
5.0
tests
--
echo
End
of
5.0
tests
# Fix for BUG#19243 "wrong LAST_INSERT_ID() after ON DUPLICATE KEY
# Fix for BUG#19243 "wrong LAST_INSERT_ID() after ON DUPLICATE KEY
...
...
mysql-test/r/innodb_mysql.result
View file @
9d57de14
...
@@ -1287,6 +1287,21 @@ a b
...
@@ -1287,6 +1287,21 @@ a b
3 2
3 2
1 1
1 1
DROP TABLE t1;
DROP TABLE t1;
create table t1(a char(10) not null, unique key aa(a(1)),
b char(4) not null, unique key bb(b(4))) engine=innodb;
desc t1;
Field Type Null Key Default Extra
a char(10) NO UNI NULL
b char(4) NO PRI NULL
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` char(10) NOT NULL,
`b` char(4) NOT NULL,
UNIQUE KEY `bb` (`b`),
UNIQUE KEY `aa` (`a`(1))
) ENGINE=InnoDB DEFAULT CHARSET=latin1
drop table t1;
End of 5.0 tests
End of 5.0 tests
CREATE TABLE `t2` (
CREATE TABLE `t2` (
`k` int(11) NOT NULL auto_increment,
`k` int(11) NOT NULL auto_increment,
...
...
mysql-test/r/key.result
View file @
9d57de14
...
@@ -530,3 +530,48 @@ ORDER BY c.b, c.d
...
@@ -530,3 +530,48 @@ ORDER BY c.b, c.d
a b c d e f g h i j a b c d
a b c d e f g h i j a b c d
2 2 1 2004-11-30 12:00:00 1 0 0 0 0 0 2 3388000 -553000 NULL
2 2 1 2004-11-30 12:00:00 1 0 0 0 0 0 2 3388000 -553000 NULL
DROP TABLE t1, t2;
DROP TABLE t1, t2;
create table t1(a int not null, key aa(a),
b char(10) not null, unique key bb(b(1)),
c char(4) not null, unique key cc(c));
desc t1;
Field Type Null Key Default Extra
a int(11) NO MUL NULL
b char(10) NO UNI NULL
c char(4) NO PRI NULL
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) NOT NULL,
`b` char(10) NOT NULL,
`c` char(4) NOT NULL,
UNIQUE KEY `cc` (`c`),
UNIQUE KEY `bb` (`b`(1)),
KEY `aa` (`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;
create table t1(a int not null, key aa(a),
b char(10) not null, unique key bb(b(1)),
c char(4) not null);
desc t1;
Field Type Null Key Default Extra
a int(11) NO MUL NULL
b char(10) NO UNI NULL
c char(4) NO NULL
alter table t1 add unique key cc(c);
desc t1;
Field Type Null Key Default Extra
a int(11) NO MUL NULL
b char(10) NO UNI NULL
c char(4) NO PRI NULL
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) NOT NULL,
`b` char(10) NOT NULL,
`c` char(4) NOT NULL,
UNIQUE KEY `cc` (`c`),
UNIQUE KEY `bb` (`b`(1)),
KEY `aa` (`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;
End of 5.0 tests
mysql-test/t/key.test
View file @
9d57de14
...
@@ -501,3 +501,23 @@ ORDER BY c.b, c.d
...
@@ -501,3 +501,23 @@ ORDER BY c.b, c.d
;
;
DROP
TABLE
t1
,
t2
;
DROP
TABLE
t1
,
t2
;
#
# Bug #31137: Assertion failed: primary_key_no == -1 || primary_key_no == 0
#
create
table
t1
(
a
int
not
null
,
key
aa
(
a
),
b
char
(
10
)
not
null
,
unique
key
bb
(
b
(
1
)),
c
char
(
4
)
not
null
,
unique
key
cc
(
c
));
desc
t1
;
show
create
table
t1
;
drop
table
t1
;
create
table
t1
(
a
int
not
null
,
key
aa
(
a
),
b
char
(
10
)
not
null
,
unique
key
bb
(
b
(
1
)),
c
char
(
4
)
not
null
);
desc
t1
;
alter
table
t1
add
unique
key
cc
(
c
);
desc
t1
;
show
create
table
t1
;
drop
table
t1
;
--
echo
End
of
5.0
tests
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