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
c16e908a
Commit
c16e908a
authored
Jan 16, 2003
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix for 'ANALYZE for MERGE' and table-less MERGE table
parent
01573f0d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
mysql-test/r/merge.result
mysql-test/r/merge.result
+1
-1
mysql-test/t/merge.test
mysql-test/t/merge.test
+1
-1
sql/ha_myisammrg.cc
sql/ha_myisammrg.cc
+1
-1
No files found.
mysql-test/r/merge.result
View file @
c16e908a
...
...
@@ -258,7 +258,7 @@ t3 CREATE TABLE `t3` (
`othr` int(11) NOT NULL default '0'
) TYPE=MRG_MyISAM UNION=(t1,t2)
drop table t3,t2,t1;
create table t1 (a int not null) type=merge;
create table t1 (a int not null
, key(a)
) type=merge;
select * from t1;
a
drop table t1;
...
...
mysql-test/t/merge.test
View file @
c16e908a
...
...
@@ -105,7 +105,7 @@ drop table t3,t2,t1;
#
# Test table without unions
#
create
table
t1
(
a
int
not
null
)
type
=
merge
;
create
table
t1
(
a
int
not
null
,
key
(
a
)
)
type
=
merge
;
select
*
from
t1
;
drop
table
t1
;
...
...
sql/ha_myisammrg.cc
View file @
c16e908a
...
...
@@ -231,7 +231,7 @@ void ha_myisammrg::info(uint flag)
#endif
if
(
flag
&
HA_STATUS_CONST
)
{
if
(
table
->
key_parts
)
if
(
table
->
key_parts
&&
info
.
rec_per_key
)
memcpy
((
char
*
)
table
->
key_info
[
0
].
rec_per_key
,
(
char
*
)
info
.
rec_per_key
,
sizeof
(
table
->
key_info
[
0
].
rec_per_key
)
*
table
->
key_parts
);
...
...
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