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
e560564c
Commit
e560564c
authored
Jun 21, 2006
by
svoj@may.pils.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge april:devel/BitKeeper/mysql-4.1
into may.pils.ru:/home/svoj/devel/mysql/BUG20357/mysql-4.1
parents
52d86dff
8b98be28
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
mysql-test/r/myisam.result
mysql-test/r/myisam.result
+13
-0
mysql-test/t/myisam.test
mysql-test/t/myisam.test
+12
-0
sql/opt_sum.cc
sql/opt_sum.cc
+6
-0
No files found.
mysql-test/r/myisam.result
View file @
e560564c
...
@@ -748,6 +748,19 @@ select count(id1) from t1 where id2 = 10;
...
@@ -748,6 +748,19 @@ select count(id1) from t1 where id2 = 10;
count(id1)
count(id1)
5
5
drop table t1;
drop table t1;
CREATE TABLE t1(a TINYINT, KEY(a)) ENGINE=MyISAM;
INSERT INTO t1 VALUES(1);
SELECT MAX(a) FROM t1 IGNORE INDEX(a);
MAX(a)
1
ALTER TABLE t1 DISABLE KEYS;
SELECT MAX(a) FROM t1;
MAX(a)
1
SELECT MAX(a) FROM t1 IGNORE INDEX(a);
MAX(a)
1
DROP TABLE t1;
CREATE TABLE t1(a CHAR(9), b VARCHAR(7)) ENGINE=MyISAM;
CREATE TABLE t1(a CHAR(9), b VARCHAR(7)) ENGINE=MyISAM;
INSERT INTO t1(a) VALUES('xxxxxxxxx'),('xxxxxxxxx');
INSERT INTO t1(a) VALUES('xxxxxxxxx'),('xxxxxxxxx');
UPDATE t1 AS ta1,t1 AS ta2 SET ta1.b='aaaaaa',ta2.b='bbbbbb';
UPDATE t1 AS ta1,t1 AS ta2 SET ta1.b='aaaaaa',ta2.b='bbbbbb';
...
...
mysql-test/t/myisam.test
View file @
e560564c
...
@@ -705,6 +705,18 @@ select count(*) from t1 where id2 = 10;
...
@@ -705,6 +705,18 @@ select count(*) from t1 where id2 = 10;
select
count
(
id1
)
from
t1
where
id2
=
10
;
select
count
(
id1
)
from
t1
where
id2
=
10
;
drop
table
t1
;
drop
table
t1
;
#
# BUG##20357 - Got error 124 from storage engine using MIN and MAX functions
# in queries
#
CREATE
TABLE
t1
(
a
TINYINT
,
KEY
(
a
))
ENGINE
=
MyISAM
;
INSERT
INTO
t1
VALUES
(
1
);
SELECT
MAX
(
a
)
FROM
t1
IGNORE
INDEX
(
a
);
ALTER
TABLE
t1
DISABLE
KEYS
;
SELECT
MAX
(
a
)
FROM
t1
;
SELECT
MAX
(
a
)
FROM
t1
IGNORE
INDEX
(
a
);
DROP
TABLE
t1
;
#
#
# BUG#18036 - update of table joined to self reports table as crashed
# BUG#18036 - update of table joined to self reports table as crashed
#
#
...
...
sql/opt_sum.cc
View file @
e560564c
...
@@ -676,6 +676,12 @@ static bool find_key_for_maxmin(bool max_fl, TABLE_REF *ref,
...
@@ -676,6 +676,12 @@ static bool find_key_for_maxmin(bool max_fl, TABLE_REF *ref,
{
{
KEY_PART_INFO
*
part
,
*
part_end
;
KEY_PART_INFO
*
part
,
*
part_end
;
key_part_map
key_part_to_use
=
0
;
key_part_map
key_part_to_use
=
0
;
/*
Perform a check if index is not disabled by ALTER TABLE
or IGNORE INDEX.
*/
if
(
!
table
->
keys_in_use_for_query
.
is_set
(
idx
))
continue
;
uint
jdx
=
0
;
uint
jdx
=
0
;
*
prefix_len
=
0
;
*
prefix_len
=
0
;
for
(
part
=
keyinfo
->
key_part
,
part_end
=
part
+
keyinfo
->
key_parts
;
for
(
part
=
keyinfo
->
key_part
,
part_end
=
part
+
keyinfo
->
key_parts
;
...
...
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