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
043c1d32
Commit
043c1d32
authored
Dec 29, 2004
by
marko@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InnoDB: fix bug in insert buffer merge of prefix columns in
new-style InnoDB tables. (Bug #7578)
parent
7adeebd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
innobase/ibuf/ibuf0ibuf.c
innobase/ibuf/ibuf0ibuf.c
+4
-3
No files found.
innobase/ibuf/ibuf0ibuf.c
View file @
043c1d32
...
@@ -1140,7 +1140,8 @@ void
...
@@ -1140,7 +1140,8 @@ void
ibuf_dummy_index_add_col
(
ibuf_dummy_index_add_col
(
/*====================*/
/*====================*/
dict_index_t
*
index
,
/* in: dummy index */
dict_index_t
*
index
,
/* in: dummy index */
dtype_t
*
type
)
/* in: the data type of the column */
dtype_t
*
type
,
/* in: the data type of the column */
ulint
len
)
/* in: length of the column */
{
{
ulint
i
=
index
->
table
->
n_def
;
ulint
i
=
index
->
table
->
n_def
;
dict_mem_table_add_col
(
index
->
table
,
"DUMMY"
,
dict_mem_table_add_col
(
index
->
table
,
"DUMMY"
,
...
@@ -1149,7 +1150,7 @@ ibuf_dummy_index_add_col(
...
@@ -1149,7 +1150,7 @@ ibuf_dummy_index_add_col(
dtype_get_len
(
type
),
dtype_get_len
(
type
),
dtype_get_prec
(
type
));
dtype_get_prec
(
type
));
dict_index_add_col
(
index
,
dict_index_add_col
(
index
,
dict_table_get_nth_col
(
index
->
table
,
i
),
0
,
0
);
dict_table_get_nth_col
(
index
->
table
,
i
),
0
,
len
);
}
}
/************************************************************************
/************************************************************************
Deallocates a dummy index for inserting a record to a non-clustered index.
Deallocates a dummy index for inserting a record to a non-clustered index.
...
@@ -1259,7 +1260,7 @@ ibuf_build_entry_from_ibuf_rec(
...
@@ -1259,7 +1260,7 @@ ibuf_build_entry_from_ibuf_rec(
dfield_get_type
(
field
),
dfield_get_type
(
field
),
types
+
i
*
DATA_NEW_ORDER_NULL_TYPE_BUF_SIZE
);
types
+
i
*
DATA_NEW_ORDER_NULL_TYPE_BUF_SIZE
);
ibuf_dummy_index_add_col
(
index
,
dfield_get_type
(
field
));
ibuf_dummy_index_add_col
(
index
,
dfield_get_type
(
field
)
,
len
);
}
}
*
pindex
=
index
;
*
pindex
=
index
;
...
...
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