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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f28a18c2
Commit
f28a18c2
authored
Jan 08, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show the index type even for indexes using the default index type in
tables that support multiple index types. (Bug #7235)
parent
c2eb3bf9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
mysql-test/r/ctype_utf8.result
mysql-test/r/ctype_utf8.result
+2
-2
sql/sql_show.cc
sql/sql_show.cc
+6
-2
No files found.
mysql-test/r/ctype_utf8.result
View file @
f28a18c2
...
@@ -412,7 +412,7 @@ show create table t1;
...
@@ -412,7 +412,7 @@ show create table t1;
Table Create Table
Table Create Table
t1 CREATE TABLE `t1` (
t1 CREATE TABLE `t1` (
`c` char(10) character set utf8 default NULL,
`c` char(10) character set utf8 default NULL,
UNIQUE KEY `a` (`c`(1))
UNIQUE KEY `a`
TYPE HASH
(`c`(1))
) ENGINE=HEAP DEFAULT CHARSET=latin1
) ENGINE=HEAP DEFAULT CHARSET=latin1
insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
insert into t1 values ('aa');
insert into t1 values ('aa');
...
@@ -570,7 +570,7 @@ show create table t1;
...
@@ -570,7 +570,7 @@ show create table t1;
Table Create Table
Table Create Table
t1 CREATE TABLE `t1` (
t1 CREATE TABLE `t1` (
`c` char(10) character set utf8 collate utf8_bin default NULL,
`c` char(10) character set utf8 collate utf8_bin default NULL,
UNIQUE KEY `a` (`c`(1))
UNIQUE KEY `a`
TYPE HASH
(`c`(1))
) ENGINE=HEAP DEFAULT CHARSET=latin1
) ENGINE=HEAP DEFAULT CHARSET=latin1
insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
insert into t1 values ('a'),('b'),('c'),('d'),('e'),('f');
insert into t1 values ('aa');
insert into t1 values ('aa');
...
...
sql/sql_show.cc
View file @
f28a18c2
...
@@ -1406,14 +1406,18 @@ store_create_info(THD *thd, TABLE *table, String *packet)
...
@@ -1406,14 +1406,18 @@ store_create_info(THD *thd, TABLE *table, String *packet)
if
(
!
(
thd
->
variables
.
sql_mode
&
MODE_NO_KEY_OPTIONS
)
&&
if
(
!
(
thd
->
variables
.
sql_mode
&
MODE_NO_KEY_OPTIONS
)
&&
!
limited_mysql_mode
&&
!
foreign_db_mode
)
!
limited_mysql_mode
&&
!
foreign_db_mode
)
{
{
if
(
table
->
db_type
==
DB_TYPE_HEAP
&&
if
(
key_info
->
algorithm
==
HA_KEY_ALG_BTREE
)
key_info
->
algorithm
==
HA_KEY_ALG_BTREE
)
packet
->
append
(
" TYPE BTREE"
,
11
);
packet
->
append
(
" TYPE BTREE"
,
11
);
if
(
key_info
->
algorithm
==
HA_KEY_ALG_HASH
)
packet
->
append
(
" TYPE HASH"
,
10
);
// +BAR: send USING only in non-default case: non-spatial rtree
// +BAR: send USING only in non-default case: non-spatial rtree
if
((
key_info
->
algorithm
==
HA_KEY_ALG_RTREE
)
&&
if
((
key_info
->
algorithm
==
HA_KEY_ALG_RTREE
)
&&
!
(
key_info
->
flags
&
HA_SPATIAL
))
!
(
key_info
->
flags
&
HA_SPATIAL
))
packet
->
append
(
" TYPE RTREE"
,
11
);
packet
->
append
(
" TYPE RTREE"
,
11
);
// No need to send TYPE FULLTEXT, it is sent as FULLTEXT KEY
}
}
packet
->
append
(
" ("
,
2
);
packet
->
append
(
" ("
,
2
);
...
...
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