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
3df20071
Commit
3df20071
authored
Nov 16, 2005
by
ingo@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/mydev/mysql-4.1-4100
into mysql.com:/home/mydev/mysql-5.0-5000
parents
e66b88bb
6bc4636b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
5 deletions
+33
-5
mysql-test/r/myisam.result
mysql-test/r/myisam.result
+10
-0
mysql-test/t/myisam.test
mysql-test/t/myisam.test
+12
-0
sql/sql_handler.cc
sql/sql_handler.cc
+3
-2
sql/sql_select.cc
sql/sql_select.cc
+6
-2
sql/sql_table.cc
sql/sql_table.cc
+2
-1
No files found.
mysql-test/r/myisam.result
View file @
3df20071
...
@@ -505,6 +505,16 @@ id select_type table type possible_keys key key_len ref rows Extra
...
@@ -505,6 +505,16 @@ id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 system NULL NULL NULL NULL 1 Using temporary
1 SIMPLE t1 system NULL NULL NULL NULL 1 Using temporary
1 SIMPLE t2 index NULL PRIMARY 4 NULL 2 Using index; Distinct
1 SIMPLE t2 index NULL PRIMARY 4 NULL 2 Using index; Distinct
drop table t1,t2;
drop table t1,t2;
create table t1 (
c1 varchar(32),
key (c1)
)
engine=myisam;
alter table t1 disable keys;
insert into t1 values ('a'), ('b');
select c1 from t1 order by c1 limit 1;
c1
a
drop table t1;
CREATE TABLE t1 (`a` int(11) NOT NULL default '0', `b` int(11) NOT NULL default '0', UNIQUE KEY `a` USING RTREE (`a`,`b`)) ENGINE=MyISAM;
CREATE TABLE t1 (`a` int(11) NOT NULL default '0', `b` int(11) NOT NULL default '0', UNIQUE KEY `a` USING RTREE (`a`,`b`)) ENGINE=MyISAM;
Got one of the listed errors
Got one of the listed errors
create table t1 (a int, b varchar(200), c text not null) checksum=1;
create table t1 (a int, b varchar(200), c text not null) checksum=1;
...
...
mysql-test/t/myisam.test
View file @
3df20071
...
@@ -476,6 +476,18 @@ explain select sql_big_result distinct t1.a from t1,t2 order by t2.a;
...
@@ -476,6 +476,18 @@ explain select sql_big_result distinct t1.a from t1,t2 order by t2.a;
explain
select
distinct
t1
.
a
from
t1
,
t2
order
by
t2
.
a
;
explain
select
distinct
t1
.
a
from
t1
,
t2
order
by
t2
.
a
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
#
# Bug#14616 - Freshly imported table returns error 124 when using LIMIT
#
create
table
t1
(
c1
varchar
(
32
),
key
(
c1
)
)
engine
=
myisam
;
alter
table
t1
disable
keys
;
insert
into
t1
values
(
'a'
),
(
'b'
);
select
c1
from
t1
order
by
c1
limit
1
;
drop
table
t1
;
#
#
# Test RTREE index
# Test RTREE index
#
#
...
...
sql/sql_handler.cc
View file @
3df20071
...
@@ -752,6 +752,7 @@ static int mysql_ha_flush_table(THD *thd, TABLE **table_ptr, uint mode_flags)
...
@@ -752,6 +752,7 @@ static int mysql_ha_flush_table(THD *thd, TABLE **table_ptr, uint mode_flags)
}
}
}
}
safe_mutex_assert_owner
(
&
LOCK_open
);
(
*
table_ptr
)
->
file
->
ha_index_or_rnd_end
();
(
*
table_ptr
)
->
file
->
ha_index_or_rnd_end
();
safe_mutex_assert_owner
(
&
LOCK_open
);
safe_mutex_assert_owner
(
&
LOCK_open
);
if
(
close_thread_table
(
thd
,
table_ptr
))
if
(
close_thread_table
(
thd
,
table_ptr
))
...
...
sql/sql_select.cc
View file @
3df20071
...
@@ -11128,8 +11128,12 @@ test_if_skip_sort_order(JOIN_TAB *tab,ORDER *order,ha_rows select_limit,
...
@@ -11128,8 +11128,12 @@ test_if_skip_sort_order(JOIN_TAB *tab,ORDER *order,ha_rows select_limit,
DBUG_ENTER
(
"test_if_skip_sort_order"
);
DBUG_ENTER
(
"test_if_skip_sort_order"
);
LINT_INIT
(
ref_key_parts
);
LINT_INIT
(
ref_key_parts
);
/* Check which keys can be used to resolve ORDER BY */
/*
usable_keys
.
set_all
();
Check which keys can be used to resolve ORDER BY.
We must not try to use disabled keys.
*/
usable_keys
=
table
->
keys_in_use
;
for
(
ORDER
*
tmp_order
=
order
;
tmp_order
;
tmp_order
=
tmp_order
->
next
)
for
(
ORDER
*
tmp_order
=
order
;
tmp_order
;
tmp_order
=
tmp_order
->
next
)
{
{
Item
*
item
=
(
*
tmp_order
->
item
)
->
real_item
();
Item
*
item
=
(
*
tmp_order
->
item
)
->
real_item
();
...
...
sql/sql_table.cc
View file @
3df20071
...
@@ -3134,6 +3134,7 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
...
@@ -3134,6 +3134,7 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
used_fields
=
create_info
->
used_fields
;
used_fields
=
create_info
->
used_fields
;
mysql_ha_flush
(
thd
,
table_list
,
MYSQL_HA_CLOSE_FINAL
,
FALSE
);
mysql_ha_flush
(
thd
,
table_list
,
MYSQL_HA_CLOSE_FINAL
,
FALSE
);
/* DISCARD/IMPORT TABLESPACE is always alone in an ALTER TABLE */
/* DISCARD/IMPORT TABLESPACE is always alone in an ALTER TABLE */
if
(
alter_info
->
tablespace_op
!=
NO_TABLESPACE_OP
)
if
(
alter_info
->
tablespace_op
!=
NO_TABLESPACE_OP
)
DBUG_RETURN
(
mysql_discard_or_import_tablespace
(
thd
,
table_list
,
DBUG_RETURN
(
mysql_discard_or_import_tablespace
(
thd
,
table_list
,
...
...
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