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
b4c25113
Commit
b4c25113
authored
Jan 09, 2005
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/jonas/src/mysql-5.0-ndb
into mysql.com:/home/jonas/src/mysql-5.0
parents
7b0748ed
61041e55
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
17 additions
and
18 deletions
+17
-18
mysql-test/r/ctype_utf8.result
mysql-test/r/ctype_utf8.result
+2
-2
mysql-test/r/heap.result
mysql-test/r/heap.result
+3
-3
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/set_var.cc
sql/set_var.cc
+2
-3
sql/sql_select.cc
sql/sql_select.cc
+1
-1
sql/sql_show.cc
sql/sql_show.cc
+2
-2
No files found.
mysql-test/r/ctype_utf8.result
View file @
b4c25113
...
@@ -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/heap.result
View file @
b4c25113
...
@@ -556,9 +556,9 @@ t1 CREATE TABLE `t1` (
...
@@ -556,9 +556,9 @@ t1 CREATE TABLE `t1` (
`v` varchar(10) default NULL,
`v` varchar(10) default NULL,
`c` char(10) default NULL,
`c` char(10) default NULL,
`t` varchar(50) default NULL,
`t` varchar(50) default NULL,
KEY `v`
TYPE
BTREE (`v`),
KEY `v`
USING
BTREE (`v`),
KEY `c`
TYPE
BTREE (`c`),
KEY `c`
USING
BTREE (`c`),
KEY `t`
TYPE
BTREE (`t`(10))
KEY `t`
USING
BTREE (`t`(10))
) ENGINE=HEAP DEFAULT CHARSET=latin1
) ENGINE=HEAP DEFAULT CHARSET=latin1
select count(*) from t1;
select count(*) from t1;
count(*)
count(*)
...
...
mysql-test/r/show_check.result
View file @
b4c25113
...
@@ -298,7 +298,7 @@ select @@max_heap_table_size;
...
@@ -298,7 +298,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,
...
@@ -307,7 +307,7 @@ index(b)
...
@@ -307,7 +307,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 @
b4c25113
...
@@ -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 @
b4c25113
...
@@ -219,7 +219,7 @@ select @@max_heap_table_size;
...
@@ -219,7 +219,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
(
...
@@ -230,7 +230,7 @@ CREATE TABLE t2 (
...
@@ -230,7 +230,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/set_var.cc
View file @
b4c25113
...
@@ -745,11 +745,11 @@ struct show_var_st init_vars[]= {
...
@@ -745,11 +745,11 @@ struct show_var_st init_vars[]= {
{
"innodb_fast_shutdown"
,
(
char
*
)
&
innobase_fast_shutdown
,
SHOW_MY_BOOL
},
{
"innodb_fast_shutdown"
,
(
char
*
)
&
innobase_fast_shutdown
,
SHOW_MY_BOOL
},
{
"innodb_file_io_threads"
,
(
char
*
)
&
innobase_file_io_threads
,
SHOW_LONG
},
{
"innodb_file_io_threads"
,
(
char
*
)
&
innobase_file_io_threads
,
SHOW_LONG
},
{
"innodb_file_per_table"
,
(
char
*
)
&
innobase_file_per_table
,
SHOW_MY_BOOL
},
{
"innodb_file_per_table"
,
(
char
*
)
&
innobase_file_per_table
,
SHOW_MY_BOOL
},
{
"innodb_locks_unsafe_for_binlog"
,
(
char
*
)
&
innobase_locks_unsafe_for_binlog
,
SHOW_MY_BOOL
},
{
"innodb_flush_log_at_trx_commit"
,
(
char
*
)
&
innobase_flush_log_at_trx_commit
,
SHOW_INT
},
{
"innodb_flush_log_at_trx_commit"
,
(
char
*
)
&
innobase_flush_log_at_trx_commit
,
SHOW_INT
},
{
"innodb_flush_method"
,
(
char
*
)
&
innobase_unix_file_flush_method
,
SHOW_CHAR_PTR
},
{
"innodb_flush_method"
,
(
char
*
)
&
innobase_unix_file_flush_method
,
SHOW_CHAR_PTR
},
{
"innodb_force_recovery"
,
(
char
*
)
&
innobase_force_recovery
,
SHOW_LONG
},
{
"innodb_force_recovery"
,
(
char
*
)
&
innobase_force_recovery
,
SHOW_LONG
},
{
"innodb_lock_wait_timeout"
,
(
char
*
)
&
innobase_lock_wait_timeout
,
SHOW_LONG
},
{
"innodb_lock_wait_timeout"
,
(
char
*
)
&
innobase_lock_wait_timeout
,
SHOW_LONG
},
{
"innodb_locks_unsafe_for_binlog"
,
(
char
*
)
&
innobase_locks_unsafe_for_binlog
,
SHOW_MY_BOOL
},
{
"innodb_log_arch_dir"
,
(
char
*
)
&
innobase_log_arch_dir
,
SHOW_CHAR_PTR
},
{
"innodb_log_arch_dir"
,
(
char
*
)
&
innobase_log_arch_dir
,
SHOW_CHAR_PTR
},
{
"innodb_log_archive"
,
(
char
*
)
&
innobase_log_archive
,
SHOW_MY_BOOL
},
{
"innodb_log_archive"
,
(
char
*
)
&
innobase_log_archive
,
SHOW_MY_BOOL
},
{
"innodb_log_buffer_size"
,
(
char
*
)
&
innobase_log_buffer_size
,
SHOW_LONG
},
{
"innodb_log_buffer_size"
,
(
char
*
)
&
innobase_log_buffer_size
,
SHOW_LONG
},
...
@@ -758,10 +758,9 @@ struct show_var_st init_vars[]= {
...
@@ -758,10 +758,9 @@ struct show_var_st init_vars[]= {
{
"innodb_log_group_home_dir"
,
(
char
*
)
&
innobase_log_group_home_dir
,
SHOW_CHAR_PTR
},
{
"innodb_log_group_home_dir"
,
(
char
*
)
&
innobase_log_group_home_dir
,
SHOW_CHAR_PTR
},
{
sys_innodb_max_dirty_pages_pct
.
name
,
(
char
*
)
&
sys_innodb_max_dirty_pages_pct
,
SHOW_SYS
},
{
sys_innodb_max_dirty_pages_pct
.
name
,
(
char
*
)
&
sys_innodb_max_dirty_pages_pct
,
SHOW_SYS
},
{
sys_innodb_max_purge_lag
.
name
,
(
char
*
)
&
sys_innodb_max_purge_lag
,
SHOW_SYS
},
{
sys_innodb_max_purge_lag
.
name
,
(
char
*
)
&
sys_innodb_max_purge_lag
,
SHOW_SYS
},
{
sys_innodb_table_locks
.
name
,
(
char
*
)
&
sys_innodb_table_locks
,
SHOW_SYS
},
{
sys_innodb_max_purge_lag
.
name
,
(
char
*
)
&
sys_innodb_max_purge_lag
,
SHOW_SYS
},
{
"innodb_mirrored_log_groups"
,
(
char
*
)
&
innobase_mirrored_log_groups
,
SHOW_LONG
},
{
"innodb_mirrored_log_groups"
,
(
char
*
)
&
innobase_mirrored_log_groups
,
SHOW_LONG
},
{
"innodb_open_files"
,
(
char
*
)
&
innobase_open_files
,
SHOW_LONG
},
{
"innodb_open_files"
,
(
char
*
)
&
innobase_open_files
,
SHOW_LONG
},
{
sys_innodb_table_locks
.
name
,
(
char
*
)
&
sys_innodb_table_locks
,
SHOW_SYS
},
{
"innodb_thread_concurrency"
,
(
char
*
)
&
innobase_thread_concurrency
,
SHOW_LONG
},
{
"innodb_thread_concurrency"
,
(
char
*
)
&
innobase_thread_concurrency
,
SHOW_LONG
},
#endif
#endif
{
sys_interactive_timeout
.
name
,(
char
*
)
&
sys_interactive_timeout
,
SHOW_SYS
},
{
sys_interactive_timeout
.
name
,(
char
*
)
&
sys_interactive_timeout
,
SHOW_SYS
},
...
...
sql/sql_select.cc
View file @
b4c25113
...
@@ -7904,7 +7904,7 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields,
...
@@ -7904,7 +7904,7 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields,
table
->
s
->
keys_for_keyread
.
init
();
table
->
s
->
keys_for_keyread
.
init
();
table
->
s
->
keys_in_use
.
init
();
table
->
s
->
keys_in_use
.
init
();
/* For easier error reporting */
/* For easier error reporting */
table
->
s
->
table_cache_key
=
(
char
*
)
table
->
s
->
db
=
""
;
table
->
s
->
table_cache_key
=
(
char
*
)
(
table
->
s
->
db
=
""
)
;
/* Calculate which type of fields we will store in the temporary table */
/* Calculate which type of fields we will store in the temporary table */
...
...
sql/sql_show.cc
View file @
b4c25113
...
@@ -889,12 +889,12 @@ store_create_info(THD *thd, TABLE_LIST *table_list, String *packet)
...
@@ -889,12 +889,12 @@ store_create_info(THD *thd, TABLE_LIST *table_list, String *packet)
{
{
if
(
share
->
db_type
==
DB_TYPE_HEAP
&&
if
(
share
->
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