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
259bce85
Commit
259bce85
authored
Aug 11, 2004
by
acurtis@pcgem.rdg.cyberkinetica.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-4.0
into pcgem.rdg.cyberkinetica.com:/usr/home/acurtis/work/bug4411
parents
9a938cc0
bc78a46a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
0 deletions
+26
-0
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
mysql-test/r/heap.result
mysql-test/r/heap.result
+10
-0
mysql-test/t/heap.test
mysql-test/t/heap.test
+14
-0
sql/opt_sum.cc
sql/opt_sum.cc
+1
-0
No files found.
BitKeeper/etc/logging_ok
View file @
259bce85
...
@@ -5,6 +5,7 @@ Administrator@fred.
...
@@ -5,6 +5,7 @@ Administrator@fred.
Greg@greg-laptop.
Greg@greg-laptop.
Miguel@light.local
Miguel@light.local
Sinisa@sinisa.nasamreza.org
Sinisa@sinisa.nasamreza.org
acurtis@pcgem.rdg.cyberkinetica.com
ahlentz@co3064164-a.rochd1.qld.optusnet.com.au
ahlentz@co3064164-a.rochd1.qld.optusnet.com.au
akishkin@work.mysql.com
akishkin@work.mysql.com
antony@ltantony.dsl-verizon.net
antony@ltantony.dsl-verizon.net
...
...
mysql-test/r/heap.result
View file @
259bce85
...
@@ -217,3 +217,13 @@ DELETE from t1 where a < 100;
...
@@ -217,3 +217,13 @@ DELETE from t1 where a < 100;
SELECT * from t1;
SELECT * from t1;
a
a
DROP TABLE t1;
DROP TABLE t1;
CREATE TABLE `job_titles` (
`job_title_id` int(6) unsigned NOT NULL default '0',
`job_title` char(18) NOT NULL default '',
PRIMARY KEY (`job_title_id`),
UNIQUE KEY `job_title_id` (`job_title_id`,`job_title`)
) TYPE=HEAP;
SELECT MAX(job_title_id) FROM job_titles;
MAX(job_title_id)
NULL
DROP TABLE job_titles;
mysql-test/t/heap.test
View file @
259bce85
...
@@ -147,3 +147,17 @@ INSERT into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11);
...
@@ -147,3 +147,17 @@ INSERT into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11);
DELETE
from
t1
where
a
<
100
;
DELETE
from
t1
where
a
<
100
;
SELECT
*
from
t1
;
SELECT
*
from
t1
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
#
# Bug#4411 Server hangs when trying to SELECT MAX(id) from an empty HEAP table
#
CREATE
TABLE
`job_titles`
(
`job_title_id`
int
(
6
)
unsigned
NOT
NULL
default
'0'
,
`job_title`
char
(
18
)
NOT
NULL
default
''
,
PRIMARY
KEY
(
`job_title_id`
),
UNIQUE
KEY
`job_title_id`
(
`job_title_id`
,
`job_title`
)
)
TYPE
=
HEAP
;
SELECT
MAX
(
job_title_id
)
FROM
job_titles
;
DROP
TABLE
job_titles
;
sql/opt_sum.cc
View file @
259bce85
...
@@ -401,6 +401,7 @@ static bool find_range_key(TABLE_REF *ref, Field* field, COND *cond)
...
@@ -401,6 +401,7 @@ static bool find_range_key(TABLE_REF *ref, Field* field, COND *cond)
/* Can't use this key, for looking up min() or max(), end if last one */
/* Can't use this key, for looking up min() or max(), end if last one */
if
(
key
==
1
)
if
(
key
==
1
)
return
0
;
return
0
;
key
>>=
1
;
idx
++
;
}
}
ref
->
key_length
=
0
;
ref
->
key_length
=
0
;
ref
->
key
=
idx
;
ref
->
key
=
idx
;
...
...
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