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
e726580b
Commit
e726580b
authored
Feb 02, 2012
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#13654923 BOGUS DEBUG ASSERTION IN INDEX CREATION FOR ZERO-LENGTH RECORD
row_merge_buf_write(): Relax the bogus assertion.
parent
ed822984
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
mysql-test/suite/innodb_plugin/r/innodb-index.result
mysql-test/suite/innodb_plugin/r/innodb-index.result
+4
-0
mysql-test/suite/innodb_plugin/t/innodb-index.test
mysql-test/suite/innodb_plugin/t/innodb-index.test
+5
-0
storage/innodb_plugin/row/row0merge.c
storage/innodb_plugin/row/row0merge.c
+2
-2
No files found.
mysql-test/suite/innodb_plugin/r/innodb-index.result
View file @
e726580b
...
...
@@ -114,6 +114,10 @@ t12963823 CREATE TABLE `t12963823` (
KEY `ndx_o` (`o`(500)),
KEY `ndx_p` (`p`(500))
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
create table t1(a varchar(2) primary key) engine=innodb;
insert into t1 values('');
create index t1a1 on t1(a(1));
drop table t1;
set global innodb_file_per_table=0;
set global innodb_file_format=Antelope;
create table t1(a int not null, b int, c char(10) not null, d varchar(20)) engine = innodb;
...
...
mysql-test/suite/innodb_plugin/t/innodb-index.test
View file @
e726580b
...
...
@@ -119,6 +119,11 @@ show create table t12963823;
# this file complete before dropping the table. By then, the purge thread
# will have delt with the updates above.
# Bug#13654923 BOGUS DEBUG ASSERTION IN INDEX CREATION FOR ZERO-LENGTH RECORD
create
table
t1
(
a
varchar
(
2
)
primary
key
)
engine
=
innodb
;
insert
into
t1
values
(
''
);
create
index
t1a1
on
t1
(
a
(
1
));
drop
table
t1
;
eval
set
global
innodb_file_per_table
=
$per_table
;
eval
set
global
innodb_file_format
=
$format
;
...
...
storage/innodb_plugin/row/row0merge.c
View file @
e726580b
/*****************************************************************************
Copyright (c)
2005, 2010, Innobase Oy
. All Rights Reserved.
Copyright (c)
1995, 2012, Oracle and/or its affiliates
. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
...
...
@@ -576,7 +576,7 @@ row_merge_buf_write(
REC_STATUS_ORDINARY
,
entry
,
n_fields
,
&
extra_size
);
ut_ad
(
size
>
extra_size
);
ut_ad
(
size
>
=
extra_size
);
ut_ad
(
extra_size
>=
REC_N_NEW_EXTRA_BYTES
);
extra_size
-=
REC_N_NEW_EXTRA_BYTES
;
size
-=
REC_N_NEW_EXTRA_BYTES
;
...
...
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