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
fbc96c79
Commit
fbc96c79
authored
Dec 27, 2004
by
timour@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/timka/mysql/src/4.1-virgin
into mysql.com:/home/timka/mysql/src/4.1-dbg
parents
23824957
5eab756a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
0 deletions
+20
-0
mysql-test/r/merge.result
mysql-test/r/merge.result
+5
-0
mysql-test/t/merge.test
mysql-test/t/merge.test
+3
-0
sql/ha_myisammrg.cc
sql/ha_myisammrg.cc
+11
-0
sql/ha_myisammrg.h
sql/ha_myisammrg.h
+1
-0
No files found.
mysql-test/r/merge.result
View file @
fbc96c79
...
...
@@ -675,4 +675,9 @@ a b c
1 2 0
1 1 1
1 1 0
show index from t3;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
t3 1 a 1 a A NULL NULL NULL YES BTREE
t3 1 a 2 b A NULL NULL NULL YES BTREE
t3 1 a 3 c A NULL NULL NULL YES BTREE
drop table t1, t2, t3;
mysql-test/t/merge.test
View file @
fbc96c79
...
...
@@ -301,5 +301,8 @@ select a,b,c from t3 force index (a) where a=1 order by a,b,c;
explain
select
a
,
b
,
c
from
t3
force
index
(
a
)
where
a
=
1
order
by
a
desc
,
b
desc
,
c
desc
;
select
a
,
b
,
c
from
t3
force
index
(
a
)
where
a
=
1
order
by
a
desc
,
b
desc
,
c
desc
;
# BUG#7377 SHOW index on MERGE table crashes debug server
show
index
from
t3
;
drop
table
t1
,
t2
,
t3
;
sql/ha_myisammrg.cc
View file @
fbc96c79
...
...
@@ -35,6 +35,17 @@
const
char
**
ha_myisammrg
::
bas_ext
()
const
{
static
const
char
*
ext
[]
=
{
".MRG"
,
NullS
};
return
ext
;
}
const
char
*
ha_myisammrg
::
index_type
(
uint
key_number
)
{
return
((
table
->
key_info
[
key_number
].
flags
&
HA_FULLTEXT
)
?
"FULLTEXT"
:
(
table
->
key_info
[
key_number
].
flags
&
HA_SPATIAL
)
?
"SPATIAL"
:
(
table
->
key_info
[
key_number
].
algorithm
==
HA_KEY_ALG_RTREE
)
?
"RTREE"
:
"BTREE"
);
}
int
ha_myisammrg
::
open
(
const
char
*
name
,
int
mode
,
uint
test_if_locked
)
{
...
...
sql/ha_myisammrg.h
View file @
fbc96c79
...
...
@@ -32,6 +32,7 @@ class ha_myisammrg: public handler
~
ha_myisammrg
()
{}
const
char
*
table_type
()
const
{
return
"MRG_MyISAM"
;
}
const
char
**
bas_ext
()
const
;
const
char
*
index_type
(
uint
key_number
);
ulong
table_flags
()
const
{
return
(
HA_REC_NOT_IN_SEQ
|
HA_AUTO_PART_KEY
|
HA_READ_RND_SAME
|
...
...
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