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
5c497ef3
Commit
5c497ef3
authored
Jan 08, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 'USING <indextype>' in results of SHOW CREATE TABLE, it's the preferred
syntax. (Bug #7233)
parent
c2eb3bf9
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
mysql-test/r/ctype_utf8.result
mysql-test/r/ctype_utf8.result
+2
-2
mysql-test/r/show_check.result
mysql-test/r/show_check.result
+2
-2
mysql-test/r/sql_mode.result
mysql-test/r/sql_mode.result
+3
-3
mysql-test/t/show_check.test
mysql-test/t/show_check.test
+2
-2
sql/sql_show.cc
sql/sql_show.cc
+2
-2
No files found.
mysql-test/r/ctype_utf8.result
View file @
5c497ef3
...
@@ -448,7 +448,7 @@ show create table t1;
...
@@ -448,7 +448,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`
TYPE
BTREE (`c`(1))
UNIQUE KEY `a`
USING
BTREE (`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');
...
@@ -606,7 +606,7 @@ show create table t1;
...
@@ -606,7 +606,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`
TYPE
BTREE (`c`(1))
UNIQUE KEY `a`
USING
BTREE (`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');
...
...
mysql-test/r/show_check.result
View file @
5c497ef3
...
@@ -297,7 +297,7 @@ select @@max_heap_table_size;
...
@@ -297,7 +297,7 @@ select @@max_heap_table_size;
1047552
1047552
CREATE TABLE t1 (
CREATE TABLE t1 (
a int(11) default NULL,
a int(11) default NULL,
KEY a
TYPE
BTREE (a)
KEY a
USING
BTREE (a)
) ENGINE=HEAP;
) ENGINE=HEAP;
CREATE TABLE t2 (
CREATE TABLE t2 (
b int(11) default NULL,
b int(11) default NULL,
...
@@ -306,7 +306,7 @@ index(b)
...
@@ -306,7 +306,7 @@ index(b)
CREATE TABLE t3 (
CREATE TABLE t3 (
a int(11) default NULL,
a int(11) default NULL,
b int(11) default NULL,
b int(11) default NULL,
KEY a
TYPE
BTREE (a),
KEY a
USING
BTREE (a),
index(b)
index(b)
) ENGINE=HEAP;
) ENGINE=HEAP;
insert into t1 values (1),(2);
insert into t1 values (1),(2);
...
...
mysql-test/r/sql_mode.result
View file @
5c497ef3
...
@@ -17,7 +17,7 @@ t1 CREATE TABLE `t1` (
...
@@ -17,7 +17,7 @@ t1 CREATE TABLE `t1` (
`pseudo` varchar(35) character set latin2 NOT NULL default '',
`pseudo` varchar(35) character set latin2 NOT NULL default '',
`email` varchar(60) character set latin2 NOT NULL default '',
`email` varchar(60) character set latin2 NOT NULL default '',
PRIMARY KEY (`a`),
PRIMARY KEY (`a`),
UNIQUE KEY `email`
TYPE
BTREE (`email`)
UNIQUE KEY `email`
USING
BTREE (`email`)
) ENGINE=HEAP DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
) ENGINE=HEAP DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
set @@sql_mode="ansi_quotes";
set @@sql_mode="ansi_quotes";
show variables like 'sql_mode';
show variables like 'sql_mode';
...
@@ -30,7 +30,7 @@ t1 CREATE TABLE "t1" (
...
@@ -30,7 +30,7 @@ t1 CREATE TABLE "t1" (
"pseudo" varchar(35) character set latin2 NOT NULL default '',
"pseudo" varchar(35) character set latin2 NOT NULL default '',
"email" varchar(60) character set latin2 NOT NULL default '',
"email" varchar(60) character set latin2 NOT NULL default '',
PRIMARY KEY ("a"),
PRIMARY KEY ("a"),
UNIQUE KEY "email"
TYPE
BTREE ("email")
UNIQUE KEY "email"
USING
BTREE ("email")
) ENGINE=HEAP DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
) ENGINE=HEAP DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
set @@sql_mode="no_table_options";
set @@sql_mode="no_table_options";
show variables like 'sql_mode';
show variables like 'sql_mode';
...
@@ -43,7 +43,7 @@ t1 CREATE TABLE `t1` (
...
@@ -43,7 +43,7 @@ t1 CREATE TABLE `t1` (
`pseudo` varchar(35) character set latin2 NOT NULL default '',
`pseudo` varchar(35) character set latin2 NOT NULL default '',
`email` varchar(60) character set latin2 NOT NULL default '',
`email` varchar(60) character set latin2 NOT NULL default '',
PRIMARY KEY (`a`),
PRIMARY KEY (`a`),
UNIQUE KEY `email`
TYPE
BTREE (`email`)
UNIQUE KEY `email`
USING
BTREE (`email`)
)
)
set @@sql_mode="no_key_options";
set @@sql_mode="no_key_options";
show variables like 'sql_mode';
show variables like 'sql_mode';
...
...
mysql-test/t/show_check.test
View file @
5c497ef3
...
@@ -210,7 +210,7 @@ select @@max_heap_table_size;
...
@@ -210,7 +210,7 @@ select @@max_heap_table_size;
CREATE
TABLE
t1
(
CREATE
TABLE
t1
(
a
int
(
11
)
default
NULL
,
a
int
(
11
)
default
NULL
,
KEY
a
TYPE
BTREE
(
a
)
KEY
a
USING
BTREE
(
a
)
)
ENGINE
=
HEAP
;
)
ENGINE
=
HEAP
;
CREATE
TABLE
t2
(
CREATE
TABLE
t2
(
...
@@ -221,7 +221,7 @@ CREATE TABLE t2 (
...
@@ -221,7 +221,7 @@ CREATE TABLE t2 (
CREATE
TABLE
t3
(
CREATE
TABLE
t3
(
a
int
(
11
)
default
NULL
,
a
int
(
11
)
default
NULL
,
b
int
(
11
)
default
NULL
,
b
int
(
11
)
default
NULL
,
KEY
a
TYPE
BTREE
(
a
),
KEY
a
USING
BTREE
(
a
),
index
(
b
)
index
(
b
)
)
ENGINE
=
HEAP
;
)
ENGINE
=
HEAP
;
...
...
sql/sql_show.cc
View file @
5c497ef3
...
@@ -1408,12 +1408,12 @@ store_create_info(THD *thd, TABLE *table, String *packet)
...
@@ -1408,12 +1408,12 @@ store_create_info(THD *thd, TABLE *table, String *packet)
{
{
if
(
table
->
db_type
==
DB_TYPE_HEAP
&&
if
(
table
->
db_type
==
DB_TYPE_HEAP
&&
key_info
->
algorithm
==
HA_KEY_ALG_BTREE
)
key_info
->
algorithm
==
HA_KEY_ALG_BTREE
)
packet
->
append
(
"
TYPE BTREE"
,
11
);
packet
->
append
(
"
USING BTREE"
,
12
);
// +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
(
"
USING RTREE"
,
12
);
}
}
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