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
8f68cac2
Commit
8f68cac2
authored
Feb 12, 2008
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into moonbone.local:/work/31590-bug-5.0-opt-mysql
parents
48858262
2c468127
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
mysql-test/r/order_by.result
mysql-test/r/order_by.result
+12
-0
mysql-test/t/order_by.test
mysql-test/t/order_by.test
+12
-0
sql/filesort.cc
sql/filesort.cc
+1
-2
No files found.
mysql-test/r/order_by.result
View file @
8f68cac2
...
...
@@ -1064,3 +1064,15 @@ a b
10 00:00:10
0 00:00:00
DROP TABLE t1;
#
# Bug#31590: Wrong error message on sort buffer being too small.
#
create table t1(a int, b tinytext);
insert into t1 values (1,2),(3,2);
set session sort_buffer_size= 30000;
Warnings:
Warning 1292 Truncated incorrect sort_buffer_size value: '30000'
set session max_sort_length= 2180;
select * from t1 order by b;
ERROR HY001: Out of sort memory; increase server sort buffer size
drop table t1;
mysql-test/t/order_by.test
View file @
8f68cac2
...
...
@@ -726,3 +726,15 @@ SELECT a, b FROM t1 ORDER BY b DESC;
SELECT
a
,
b
FROM
t1
ORDER
BY
SEC_TO_TIME
(
a
)
DESC
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# Bug#31590: Wrong error message on sort buffer being too small.
--
echo
#
create
table
t1
(
a
int
,
b
tinytext
);
insert
into
t1
values
(
1
,
2
),(
3
,
2
);
set
session
sort_buffer_size
=
30000
;
set
session
max_sort_length
=
2180
;
--
error
1038
select
*
from
t1
order
by
b
;
drop
table
t1
;
sql/filesort.cc
View file @
8f68cac2
...
...
@@ -215,8 +215,7 @@ ha_rows filesort(THD *thd, TABLE *table, SORT_FIELD *sortorder, uint s_length,
sort_keys
=
table_sort
.
sort_keys
;
if
(
memavl
<
min_sort_memory
)
{
my_error
(
ER_OUTOFMEMORY
,
MYF
(
ME_ERROR
+
ME_WAITTANG
),
thd
->
variables
.
sortbuff_size
);
my_error
(
ER_OUT_OF_SORTMEMORY
,
MYF
(
ME_ERROR
+
ME_WAITTANG
));
goto
err
;
}
if
(
open_cached_file
(
&
buffpek_pointers
,
mysql_tmpdir
,
TEMP_PREFIX
,
...
...
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